【待反馈】mysql启动不了
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:centos 7+宝塔8.2.0
系统版本:
Linux
问题描述:
mysql5.6启动不起来了,重启服务器也不行?
相关截图(日志、错误):
2024-12-02 11:10:04 8684 Binlog end
2024-12-02 11:10:04 8684 Shutting down plugin 'partition'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_DATAFILES'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_TABLESPACES'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_FOREIGN'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_FIELDS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_COLUMNS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_INDEXES'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_TABLESTATS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_SYS_TABLES'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_CONFIG'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_BEING_DELETED'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_DELETED'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_METRICS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_BUFFER_PAGE'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMP_PER_INDEX'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMPMEM_RESET'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMPMEM'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMP_RESET'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_CMP'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_LOCK_WAITS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_LOCKS'
2024-12-02 11:10:04 8684 Shutting down plugin 'INNODB_TRX'
2024-12-02 11:10:04 8684 Shutting down plugin 'InnoDB'
2024-12-02 11:10:04 8684 InnoDB: FTS optimize thread exiting.
2024-12-02 11:10:04 8684 InnoDB: Starting shutdown...
2024-12-02 11:10:06 8684 InnoDB: Shutdown completed; log sequence number 115582209251
2024-12-02 11:10:06 8684 Shutting down plugin 'PERFORMANCE_SCHEMA'
2024-12-02 11:10:06 8684 Shutting down plugin 'ARCHIVE'
2024-12-02 11:10:06 8684 Shutting down plugin 'BLACKHOLE'
2024-12-02 11:10:06 8684 Shutting down plugin 'MRG_MYISAM'
2024-12-02 11:10:06 8684 Shutting down plugin 'MyISAM'
2024-12-02 11:10:06 8684 Shutting down plugin 'CSV'
2024-12-02 11:10:06 8684 Shutting down plugin 'MEMORY'
2024-12-02 11:10:06 8684 Shutting down plugin 'sha256_password'
2024-12-02 11:10:06 8684 Shutting down plugin 'mysql_old_password'
2024-12-02 11:10:06 8684 Shutting down plugin 'mysql_native_password'
2024-12-02 11:10:06 8684 Shutting down plugin 'binlog'
2024-12-02 11:10:06 8684 /www/server/mysql/bin/mysqld: Shutdown complete
cat /www/server/data/*.err|grep -i -C 10 error
您好,执行这个命令,把 mysql 错误(error)级别日志截图发出来 本帖最后由 饭饭饭饭fa 于 2024-12-2 11:41 编辑
提示没有mysql-bin.000170这个文件,我看了,的确没有这个文件,只到mysql-bin.000169,用gpt搜索说修改mysql-bin.index文件,把170那行去掉,不知道是否可行?
饭饭饭饭fa 发表于 2024-12-2 11:39
您好,您是不是手动把 mysql-bin.000170 文件删除了?不可能不存在的,如果你手动删除了,就把 mysql-bin.index 里记录删掉。具体操作方式如下:
1、做个磁盘快照,保证当前数据库在后续的操作不会因后续修改出错
2、删掉 mysql-bin.index文件里不存在的 mysql-binlog日志
3、保存,重启 mysql。 大炮运维V587 发表于 2024-12-2 11:21
您好,执行这个命令,把 mysql 错误(error)级别日志截图发出来
提示没有mysql-bin.000170这个文件,我看了,的确没有这个文件,只到mysql-bin.000169,用gpt搜索说修改mysql-bin.index文件,把170那行去掉,不知道是否可行? 大炮运维V587 发表于 2024-12-2 11:46
您好,您是不是手动把 mysql-bin.000170 文件删除了?不可能不存在的,如果你手动删除了,就把 mysql-bin ...
没有删除过,从来没动过 饭饭饭饭fa 发表于 2024-12-2 11:47
提示没有mysql-bin.000170这个文件,我看了,的确没有这个文件,只到mysql-bin.000169,用gpt搜索说修改m ...
上面已经回复,请严格根据上述进行操作 大炮运维V587 发表于 2024-12-2 11:50
上面已经回复,请严格根据上述进行操作
感谢,删除后可以启动正常,现在就是不知道出现这个问题的原因是什么,服务器一直没操作过,好久没登录了,只是前几天把微信中宝塔提示那个服务关闭了,不知道和这个有关系不?正常应该不会啊。 饭饭饭饭fa 发表于 2024-12-2 11:55
感谢,删除后可以启动正常,现在就是不知道出现这个问题的原因是什么,服务器一直没操作过,好久没登录了 ...
由于提供的信息太少,无法判断是什么原因造成的。如果需要追溯原因,可以扫码联系我司专属运维客服李经理
页:
[1]