【问题标题】:Mysql access denied error 1045Mysql访问被拒绝错误1045
【发布时间】:2018-02-08 14:03:33
【问题描述】:

我正在尝试连接到 redhat 6.4(在 VM 上)上的 mysql,但使用此命令行时出现以下错误:

mysql -u root

ERROR 1045 (28000): Access denied for user 'root'@'localhost'(使用 密码:否)

你能帮忙吗?

谢谢 最好的问候,

【问题讨论】:

    标签: mysql redhat


    【解决方案1】:

    我会尝试包含密码

       mysql --user=user_name --password db_name
    

    【讨论】:

    • 您是否 100% 确定您使用的密码属于该数据库?,
    • 是的,我更改了密码,现在可以正常使用了,谢谢
    猜你喜欢
    • 2010-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-08
    • 1970-01-01
    • 2011-10-13
    • 1970-01-01
    相关资源
    最近更新 更多