宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】MySQL隔一段时间就就自动停止了,这个是什么原因

发表在 Linux面板2024-6-23 19:24 [复制链接] 3 933

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:Linux正式版8.2.0

系统版本:系统:CentOS 7

问题描述:MySQL隔一段时间就就自动停止了,

相关截图(日志、错误):
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: for more information.
2024-06-23 19:17:40 2b91cf813700 InnoDB: Error: page 24 log sequence number 18254526607
InnoDB: is in the future! Current system log sequence number 14154042746.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: for more information.
2024-06-23 19:18:51 2b91cf813700 InnoDB: Error: page 11 log sequence number 18063306463
InnoDB: is in the future! Current system log sequence number 14154109559.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: for more information.
2024-06-23 19:20:44 2b91cf813700 InnoDB: Error: page 3 log sequence number 16937472632
InnoDB: is in the future! Current system log sequence number 14154123665.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: for more information.
2024-06-23 19:22:46 2b91cf78f700 InnoDB: Error: page 3 log sequence number 16937472632
InnoDB: is in the future! Current system log sequence number 14154145470.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: for more information.

使用道具 举报 只看该作者 回复
发表于 2024-6-24 11:59:41 | 显示全部楼层
您好,看起来您的 MySQL 数据库中的 InnoDB 表空间可能出现了一些问题。错误信息提示当前系统日志序列号已经过期,可能会导致数据库损坏
请做好备份或者快照
尝试可以在 MySQL 的配置文件中(通常是 my.cnf 或 my.ini)设置 innodb_force_recovery 参数来尝试以恢复模式启动 MySQL。这个参数的值可以从 1 到 6,每个值都有不同的恢复行为。您可以从小到大地尝试这些值,以查看是否可以启动数据库
使用道具 举报 回复 支持 反对
发表于 2024-6-24 15:07:24 | 显示全部楼层
运维技术阿闯 发表于 2024-6-24 11:59
您好,看起来您的 MySQL 数据库中的 InnoDB 表空间可能出现了一些问题。错误信息提示当前系统日志序列号已 ...

这个是怎么弄,在哪里找这个配置文件,有截图吗,一个新手不怎么会这些,最好有截图标识一下在那个地方找这些文件和修改的地方
使用道具 举报 回复 支持 反对
发表于 2024-6-24 17:14:11 | 显示全部楼层
宝塔用户_sugsau 发表于 2024-6-24 15:07
这个是怎么弄,在哪里找这个配置文件,有截图吗,一个新手不怎么会这些,最好有截图标识一下在那个地方找 ...

您好,请做好快照,然后find / -name "my.cnf"  然后找到文件后,cd到这个文件,然后vi打开文件找到inoodb_force_recovery
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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