LoginSignup
1
4

More than 5 years have passed since last update.

MYSQLのrootパスワードを変更する(mysqladminコマンド)

Posted at

:large_blue_diamond: 環境

  • Windows7
  • MySQL5.7

:large_blue_diamond: コマンドを打つ

C:\Users\user> mysqladmin password 新しいパスワード -u ユーザー名 -p

ex)rootユーザのパスワードをpasswordに変更する
C:\Users\user> mysqladmin password newpassword -u root -p
Enter password:*****

「Enter password」とパスワードの入力が求められるので、ここでは現在のパスワードを入力。
※パスワードをシングルクオーテーションで囲む必要はありません。

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