欢迎投稿

今日深度:

Access denied for user: 'root@localhost' (Us

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


centos 安装mysql成功后

首次使用root登录发生:Access denied for user: 'root@localhost' (Using password: YES)  

原因是mysql初始db中的mysql库user表中root密码为空

因此你需要修改root密码

首先执行:mysql -u root 

进入mysql 库命令行

然后进入mysql库:use mysql;

进入后再执行修改密码即可:update user set password=password('aaa') where user='root'


mysql出问题了:Access denied for user: 'root@localhost' (Using password: YES)

楼上说得基本正确了,如果是自己电脑测试的话,第一项就不会错了,其他的你自己检查下,用户名,密码,数据库名是否正确。
 

mysql问题:access denied for user 'root@localhost'(using password: YES)

这个错误的意思是root密码错误,如果不知道root的密码,请换一个能登陆的用户名和密码。

---
以上,希望对你有所帮助。
 

www.htsjk.Com true http://www.htsjk.com/shujukunews/2168.html NewsArticle Access denied for user: root@localhost (Using password: YES), centos 安装mysql成功后 首次使用root登录发生:Access denied for user: 'root@localhost' (Using password: YES) 原因是mysql初始db中的mysql库user表中root密码...
评论暂时关闭