事先提醒:如果输入SHOW VARIABLES LIKE ‘validate_password%’;
先拿安装mysql时生成默认密码再设置一次就行
grep ‘temporary password’ /var/log/mysqld.log
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;
事先提醒:如果输入SHOW VARIABLES LIKE ‘validate_password%’;
先拿安装mysql时生成默认密码再设置一次就行
grep ‘temporary password’ /var/log/mysqld.log
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;