1、mysql5.7 特别讨厌。
(1)跳过原始密码,重设密码
vim /etc/my.cnf
[mysqld]
添加: skip-grant-tables
重启mysql
#mysql
mysql> update mysql.user set authentication_string=password('Heyajing123!') where user='root';
(2)第一次启动后,生成的原始随机密码
#
grep 'temporary password' /var/log/mysqld.log
2、