当前位置:论坛首页 > Linux面板 > 求助

【已完成】宝塔面板设置密码不生效

发表在 Linux面板2024-2-3 21:17 [复制链接] 1 342

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:最新版
系统版本:数据库版本:mariadb_10.11
问题描述:数据库用户情况:MariaDB [(none)]> SELECT user, host FROM mysql.user;+-------------+-----------+
| User        | Host      |
+-------------+-----------+
| PUBLIC      |           |
|             | cvm53827  |
|             | localhost |
| mysql       | localhost |
| root        | localhost |
+-------------+-----------+


而用设置密码是生效的。
数据库的配置文件:

[client]
#password        = your_password


  
相关截图(日志、错误):这个报错是因为什么?
下面是数据库面板的报错:
2024-02-03 21:08:16 4 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
2024-02-03 21:08:47 5 [Warning] Access denied for user 'root'@'localhost' (using password: YES)
2024-02-03 21:09:08 20 [Warning] Access denied for user 'root'@'localhost' (using password: YES)
2024-02-03 21:09:08 21 [Warning] Access denied for user 'root'@'localhost' (using password: YES)
2024-02-03 21:09:09 22 [Warning] Access denied for user 'root'@'localhost' (using password: YES)
2024-02-03 21:09:09 23 [Warning] Access denied for user 'root'@'localhost' (using password: YES)

使用道具 举报 只看该作者 回复
发表于 2024-2-4 09:04:45 | 显示全部楼层
您好,从您执行的查询user和host的结果来看是有空账号的存在,在MySQL规则中,优先匹配空账号,这个问题您可以参考下面教程处理【新提醒】MySQL 报 1045 错误解决方法 - Linux面板 - 宝塔面板论坛 (bt.cn)
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表