解决mysql登录报错:mysql:[Warning] Using a password on the command line interface can be insecure.ERROR 10

210次阅读
没有评论

    MySQL 登录报错

    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

    该错误表明 root 用户登录 MySQL 失败,原因是密码错误。

    一些可能的解决方案

    检查 root 用户密码的步骤

    以下是检查 root 用户是否有权访问 MySQL 服务器的步骤:

    启用密码验证的步骤

    设置 validate_password 变量的步骤

    validate_password=1

    如果您尝试了上述所有解决方案但仍然无法登录 MySQL,请联系 MySQL 技术支持。

    总结

    以上为个人经验,希望能给大家一个参考,也希望大家多多支持Linux运维。

    正文完
     0
    samly
    版权声明:本站原创文章,由 samly 于2026-01-21发表,共计360字。
    转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。