0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【MySQL】データベースとユーザーの作成

0
Posted at

目的

スクレイピングのデータを格納する場所を作る。

手順

rootユーザーとしてサーバーに接続

$ mysql -u root -p'パスワード'

データベースを作成

mysql> CREATE DATABASE 'データベース名' DEFAULT CHARACTER SET utf8mb4; 

ユーザー、パスワードの作成
パスワードは英数字と特殊文字の指定が必要

mysql> CREATE USER '任意のユーザー名'@localhost IDENTFIED BY '任意のパスワード'

作成したユーザーにデータベースの読み書き権限を付与する。

mysql> GRANT ALL ON 'データベース名'.*TO 'ユーザー名'@localhost; 

以 上

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?