mysql修改数据库密码
程序员文章站
2022-05-28 15:34:23
...
修改密码过程:
use mysql;
update user set password=password('abc') where User='root';
update mysql.user set authentication_string = password('123456') where user='root' and Host='localhost';
flush privileges; //刷新 mysql 的系统权限相关表
mysqladmin -u root -p password 123456;