进入控制台:use mysql Database changed update user set password=PASSWORD('设置的密码') where user='root'; flush privileges;