自分用メモ
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:
パスワードを入力するとログインできる。