update mysql.user set authentication_string=password('root_password') where user='root'; root_password替换成你想要的密码 7 删掉第三步的配置,并重启服务器