标签:密码 cal admin host new data mil dmi class
1.方法1:
UPDATE mysql.user SET Password=PASSWORD(‘新密码‘) WHERE user=‘root‘; FLUSH PRIVILEGES;
2.方法2:
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘新密码‘); FLUSH PRIVILEGES;
3.方法3:
mysqladmin -uroot -p旧密码 password "新密码"
标签:密码 cal admin host new data mil dmi class
原文地址:https://www.cnblogs.com/xiaofengchu/p/9495566.html