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

mysql启动提示 access denied for user root@localhost(using password:YES)

时间:2016-04-05 10:59:06      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:mysql access denied

问题:遇到mysql启动提示 access denied for user root@localhost(using password:YES) 

1、检查密码有无错误,如果无就是权限问题。

2、打开SQL的图形工具,输入以下命令行

grant all privileges on *.* to ‘root‘@‘localhost‘ identified by ‘你的密码‘ with grant option;
flush privileges;

3、在本地环境运行没有问题,如有异常,请留下评论,共同讨论

本文出自 “编程的点点滴滴” 博客,请务必保留此出处http://andylhx.blog.51cto.com/8891164/1760331

mysql启动提示 access denied for user root@localhost(using password:YES)

标签:mysql access denied

原文地址:http://andylhx.blog.51cto.com/8891164/1760331

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