Mysql 7安装后,会随机生成一个默认root密码。
cat /var/log/mysqld.log |grep password
Mysql7安装后首次登陆查看默认随机密码
原文:https://www.cnblogs.com/stone-dan-dan/p/12334797.html