1.进入mysql命令行内 mysql -uroot -p 回车 输入密码 2.修改密码 UPDATE user SET `authentication_string` = PASSWORD('root') where user='root'; 3. 刷新权限, 使修改生……