0
0

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 3 years have passed since last update.

MySQL5.7のパスワード変更方法

Posted at

MySQL5.7をインストールした際に、初期パスワードが何かわからず困惑したため残しておきます。

パスワード確認方法

$ sudo cat /var/log/mysqld.log | grep root@localhost
# パスワードが表示される。
[Note] A temporary password is generated for root@localhost: 12桁の文字列

パスワード変更方法

$ mysqladmin -uroot -p password
Enter password:古いパスワード
New password:新しいパスワード
Confirm new password:新しいパスワード
# Warnigがでても変更はできています
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.

パスワードポリシー

  • パスワード長 8文字以上
  • 大文字 1文字以上
  • 小文字 1文字以上
  • 数字 1文字以上
  • 記号 1文字以上

参考

Passwordのポリシーについて

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?