MySQL登录问题:error1045(28000)

1.服务器未启动:

  systemctl restart mysql(重启服务器)

2.密码错误:

  (1).跳过登录检测:

      /etc/my.cnf配置文件中添加:

        [mysqld]

        skip-grant-tables

      重启服务器:systemctl restart mysql

  (2).修改密码

posted @ 2024-07-24 22:19  Robertup  阅读(7)  评论(0)    收藏  举报