一、修改 mysql 的 root 密码
mysql> use mysql;
mysql> update user set password=password('123456') where user='root' and host='localhost';
mysql> flush privileges;
CTRL+C 退出重新进入即可!
mysql> use mysql;
mysql> update user set password=password('123456') where user='root' and host='localhost';
mysql> flush privileges;
CTRL+C 退出重新进入即可!