MYSQL错误:1045(28000):用户'root'@'localhost'的访问被拒绝 [英] MYSQL error: 1045 (28000): Access denied for user 'root'@'localhost'

查看:559
本文介绍了MYSQL错误:1045(28000):用户'root'@'localhost'的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试连接到sql服务器并在命令提示符下输入以下内容时:

When I try to connect to the sql server and enter the following in command prompt:

shell> mysql --user=username--password=password db_name

我收到错误消息:

错误1045(28000):对用户'root'@'localhost'的访问被拒绝(使用密码:Y ES)

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)

此错误是什么意思?

推荐答案

这表示您的密码错误或帐户"root"无法访问主机"localhost"上的数据库.

It means your password is wrong or the account "root" has no access to the database on host "localhost".

查看右侧栏.有与您相同的多个问题.

Look at the right side bar. There are multiple questions equivalent to yours.

这篇关于MYSQL错误:1045(28000):用户'root'@'localhost'的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆