ルートのパスワードを変更
DBを指定
mysql> use mysql パスワードを設定
mysql> UPDATE user SET authentication_string=password('新規パスワード') WHERE user='root'; 設定の反映
mysql> flush privileges; This post is licensed under CC BY 4.0 by the author.
mysql> use mysql mysql> UPDATE user SET authentication_string=password('新規パスワード') WHERE user='root'; mysql> flush privileges;