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;
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;
本文标题:修改MySQL中的用户密码的多种方式
本文链接:https://www.haomeiwen.com/subject/spfkmktx.html
网友评论