mysql重置root密码

参考链接

1,首先停止mysql服务service mysql stop

2,使用mysql_safe –skip-grant-tables –skip-networking启动mysql服务器,这个时候启动的的mysql会跳过认证表这一步,所以同时需要禁止远程网络登陆,安全

3,使用update语句直接修改mysql数据库中的user表,因为跳过了grant table所以没办法使用alter进行修改user的操作

转载请注明来源链接 http://just4fun.im/2016/10/12/mysql-e9-87-8d-e7-bd-aeroot-e5-af-86-e7-a0-81/ 尊重知识,谢谢:)