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

【已完成】MySQL无法正常使用,各种尝试均无果

发表在 Linux面板2024-2-21 13:41 [复制链接] 2 204

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:免费版8.0.5,MySQL5.6.50

系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)

问题描述:就是我的MySQL一开始是无法登陆的,我的网站显示“Error establishing a database connection”,且返回503状态码,尝试过重启,重载以及强制卸载重装(均对MySQL5.6.50进行操作),均无果,在今天上午我在MySQL的配置文件中添加了“skip-grant-tables”语句,解决了MySQL服务器登录问题,PHPmyadmin已可正常使用,但是网站依旧显示相同的语句以及503状态码,尝试过修改数据库密码,无果

相关截图(日志、错误):
这是错误日志“Key caches:
default
Buffer_size:      33554432
Block_size:           1024
Division_limit:        100
Age_limit:             300
blocks used:             0
not flushed:             0
w_requests:              0
writes:                  0
r_requests:              0
reads:                   0
handler status:
read_key:            3
read_next:           0
read_rnd             0
read_first:          4
write:             797
delete               0
update:              0
Table status:
Opened tables:         61
Open tables:           56
Open files:             5
Open streams:           0
Alarm status:
Active alarms:   0
Max used alarms: 0
Next alarm time: 0
Memory status:
<malloc version="1">
<heap nr="0">
<sizes>
  <size from="17" to="32" total="32" count="1"/>
  <size from="65" to="80" total="80" count="1"/>
  <size from="33" to="33" total="825" count="25"/>
  <size from="49" to="49" total="294" count="6"/>
  <size from="65" to="65" total="130" count="2"/>
  <size from="81" to="81" total="1944" count="24"/>
  <size from="97" to="97" total="194" count="2"/>
  <size from="113" to="113" total="565" count="5"/>
  <size from="129" to="129" total="2709" count="21"/>
  <size from="145" to="145" total="145" count="1"/>
  <size from="161" to="161" total="966" count="6"/>
  <size from="209" to="209" total="418" count="2"/>
  <unsorted from="145" to="13105" total="21017" count="9"/>
</sizes>
<total type="fast" count="2" size="112"/>
<total type="rest" count="103" size="29207"/>
<system type="current" size="7454720"/>
<system type="max" size="7454720"/>
<aspace type="total" size="7454720"/>
<aspace type="mprotect" size="7454720"/>
</heap>
<heap nr="1">
<sizes>
  <unsorted from="33" to="8225" total="14230" count="6"/>
</sizes>
<total type="fast" count="0" size="0"/>
<total type="rest" count="6" size="14230"/>
<system type="current" size="1748992"/>
<system type="max" size="1748992"/>
<aspace type="total" size="1748992"/>
<aspace type="mprotect" size="174”

屏幕截图 2024-02-21 132705.png
屏幕截图 2024-02-21 132748.png
屏幕截图 2024-02-21 132827.png
使用道具 举报 只看该作者 回复
发表于 2024-2-21 16:20:45 | 显示全部楼层
您好,“skip-grant-tables”是跳过密码登陆数据库,也就是免密登陆,如果你的服务器开了外网访问数据库的权限,任何人都可以登陆你的数据库的。您不要用这种方式来进入数据库。
您截图是网站无法连接您的数据库,请排查网站 使用的数据库账号+密码是否正确。
使用道具 举报 回复 支持 反对
发表于 2024-2-21 16:23:08 | 显示全部楼层
大炮运维V587 发表于 2024-2-21 16:20
您好,“skip-grant-tables”是跳过密码登陆数据库,也就是免密登陆,如果你的服务器开了外网访问数据库的 ...

我确认过,在config文件中填写的都对
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

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

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

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

立即付费处理
快速回复 返回顶部 返回列表