时间:2021-07-01 10:21:17 帮助过:23人阅读
a.登陆mysql> set password for root@localhost = password(‘123‘);
b.命令行 mysqladmin -uroot -p123456 password 123
c.mysql> use mysql; #切换到mysql库
mysql> update user set password=password(‘123‘) where user=‘root‘ and host=‘localhost‘;
mysql> flush privileges;
MySQL 常用功能
标签:flush p12 date 命令 localhost 功能 修改 root 修改密码