LoginSignup
0
0

More than 5 years have passed since last update.

MySQL5.7のワンタイムのrootのパスワードを確認するワンライナー

Last updated at Posted at 2016-08-03

rootで、以下のコマンドで、パスワード取れる。
```bash

cat /var/log/mysqld.log | grep "localhost:" | sed -e "s/.*localhost: //"


MLまで追ってないのでわからんけど。
インストールしたときに、「rootユーザのパスワードは/var/log/mysqld.logをみてね☆」的なことを言われるようになってた。
普段メッセージを読まないような"にわか"勢には、気づきにくい変更だった。
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