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

mysql 5.7忘记密码处理

时间:2016-07-11 12:24:05      阅读:190      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!