2
5

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 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に変更する

\Users\user> mysqladmin password newpassword -u root -p
Enter password:*****```
Enter password」とパスワードの入力が求められるので、ここでは現在のパスワードを入力。
※パスワードをシングルクオーテーションで囲む必要はありません。
2
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?