首页 > 数据库技术 > 详细

mysql提示:1045 access denied for user'root'@'localhost' using password yes

时间:2016-10-13 23:29:27      阅读:281      评论:0      收藏:0      [点我收藏+]

1.打开DOS进入mysql下bin目录(C:\Program Files\MySQL\MySQL Server 5.6\bin)

2.停止mysql服务,net stop  mysql

3.输入:mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 5.6\my-default.ini" --console --skip-grant-tables

4.重新打开一个DOS窗口,进入mysql下bin目录,输入:mysql -root  -p

5.提示输入密码,在Enter后面输入密码,进入mysql>

6.输入update (数据库名称) set password=PASSWORD(‘newpassword‘) where USER=‘root‘

7.输入FLUSH PRIVILEGES;

8.输入quit

OK!!!!!!!!!

mysql提示:1045 access denied for user'root'@'localhost' using password yes

原文:http://www.cnblogs.com/yjx-Blog/p/5958395.html

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