1.打开cmd
2.链接数据库如 mysql -h localhost -P 3306 -u root -proot
3.修改密码 mysql < set password for 用户名@localhost = password('新密码');
4.ok
1.打开cmd
2.链接数据库如 mysql -h localhost -P 3306 -u root -proot
3.修改密码 mysql < set password for 用户名@localhost = password('新密码');
4.ok