1.在mysql数据库中找到user表 use mysql; select Host,User,Password from user; 2.更改本地登陆的密码为123123 update user set Password=Password('123123') where Host='localhost'; 3.刷新 flush privileges;