LoginSignup
2
1

More than 5 years have passed since last update.

mysql user 作成

Posted at

自分用メモ

mysqlで新しいuserを作成していく。

参考
http://www.dbonline.jp/mysql/user/index1.html
mysqlをrootで起動

mysql -u root -p

userを作成

CREATE USER '<username>'@'localhost';

passwordを設定

SET PASSWORD FOR <username> = '<plaintext_password>';

以上。

作成したuserでログインしたい場合は。

mysql -u <username> -p
Enter password:

パスワードを入力するとログインできる。

2
1
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
2
1