首页 > 数据库技术 > 详细

mysql 5.7忘记密码处理

时间:2016-07-11 12:22:44      阅读:163      评论:0      收藏:0      [点我收藏+]

vi /etc/my.cnf
在[mysqld]下面增加一行
skip-grant-tables 
重启  /etc/init.d/mysqld restart

/usr/local/mysql/bin/mysql -uroot 
mysql> update user set authentication_string=password(‘123333‘) where user=‘root‘;
退出来后,更改my.cnf,去掉刚加的 skip-grant-tables
重启 /etc/init.d/mysqld restart

mysql 5.7忘记密码处理

原文:http://www.cnblogs.com/lin1/p/5659589.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!