标签:wpa class mysql初始化 expired 密码 and roo mys cal
MySQL 5.7.5 及之前版本:
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘MyNewPass‘);
MySQL 5.7.6 及之后版本:
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘MyNewPass‘;
或者:
UPDATE mysql.user SET authentication_string = PASSWORD(‘MyNewPass‘), password_expired = ‘N‘ WHERE User = ‘root‘ AND Host = ‘localhost‘; FLUSH PRIVILEGES;
标签:wpa class mysql初始化 expired 密码 and roo mys cal
原文地址:http://www.cnblogs.com/agmj117/p/7741968.html