博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MySQL找回root账号的密码
阅读量:7165 次
发布时间:2019-06-29

本文共 338 字,大约阅读时间需要 1 分钟。

  hot3.png

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 退出quit
7 删除my.ini文件中的skip-grant-tables
8 重启MySQL服务

转载于:https://my.oschina.net/enfp/blog/653684

你可能感兴趣的文章