码迷,mamicode.com
首页 > 数据库 > 详细

mysql之windows忘记密码

时间:2018-07-19 21:25:28      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:string   update   ant   服务   flush   ati   auth   cmd   use   

步骤:

1. 关闭mysql服务
2. mysqld --skip-grant-tables;
3. 新cmd,执行mysql
4. use mysql;
5. update mysql.user authentication_string=password(123456) where user=root and host=localhost; // set password=password(‘123456‘)在跳过权限下无效
6. flush privileges;

 

mysql之windows忘记密码

标签:string   update   ant   服务   flush   ati   auth   cmd   use   

原文地址:https://www.cnblogs.com/maoriaty/p/9337870.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!