mysql找回root密码步骤:
1 在my.ini 文件中的[mysqld]下面添加: skip-grant-tables
2 重启MySQL服务( net stop mysql 和 net start mysql )3 使用mysql直接登录,不需要用户名和密码4 执行update mysql.user set authentication_string=password('root') where user='root' ; 5 执行flush privileges;6 退出quit7 删除my.ini文件中的skip-grant-tables8 重启MySQL服务