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

Access denied for user 'root'@'localhost' (using password: YES)

时间:2015-05-05 19:41:46      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:mysql

解决方法:

CREATE USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘;
grant all privileges on *.* to ‘root‘@‘localhost‘ identified by ‘password‘ with grant option;

可以讲password,改成你要设置的密码

Access denied for user 'root'@'localhost' (using password: YES)

标签:mysql

原文地址:http://blog.csdn.net/zc123456zzc/article/details/45504923

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