首页 > 数据库技术 > 详细

mysql数据库密码重置

时间:2016-02-11 06:51:15      阅读:294      评论:0      收藏:0      [点我收藏+]

1、停止数据库

2、mysqld_safe --skip-grant-tables &

3、use mysql;

4、update user set password=password("123456") where user=‘root‘;

5、flush privileges;

6、重启mysql


本文出自 “我的运维时光” 博客,请务必保留此出处http://aaronsa.blog.51cto.com/5157083/1741482

mysql数据库密码重置

原文:http://aaronsa.blog.51cto.com/5157083/1741482

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