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 3 years have passed since last update.

ubuntuにMySQL導入するメモ

Posted at

MySQLインストール

sudo apt install mysql-server mysql-client libmysqlclient-dev sudo service mysql status

開発用ユーザー作成(rootのpassはrootからNewPasswordに変更)

まずはrootでログイン

sudo mysql -u root -p

開発ユーザーの追加

GRANT ALL PRIVILEGES ON *.* TO ユーザー名@localhost IDENTIFIED BY 'パスワード' WITH GRANT OPTION;

保存

flush privileges;

ついでにrootも初期パスワードから変更

ALTER USER 'root'@'localhost' IDENTIFIED BY '新しいパスワード';

0
0
0

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?