Error message file '/usr/share/mysql/english/errmsg.sys'

实为吾之愚见,望诸君酌之!闻过则喜,与君共勉

前几天无意间遇到了一个数据库启动问题,说一下自己的解决办法 

 

1.问题描述:

数据库启动出现如下错误:

180712 23:33:48 [ERROR] Error message file '/usr/share/mysql/english

/errmsg.sys' had only 641 error messages,but it should contain at least

 728 error messages.Check that the above file is the right version for this program!

180712 23:33:48 [Note] Plugin 'FEDERATED' is disabled.

180712 23:33:48 InnoDB: The InnoDB memory heap is disabled

180712 23:33:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins

180712 23:33:48 InnoDB: Compressed tables use zlib 1.2.3

180712 23:33:48 InnoDB: Using Linux native AIO

180712 23:33:48 InnoDB: Initializing buffer pool, size = 128.0M

180712 23:33:48 InnoDB: Completed initialization of buffer pool

180712 23:33:48 InnoDB: highest supported file format is Barracuda.

InnoDB: The user has set SRV_FORCE_NO_LOG_REDO on

InnoDB: Skipping log redo

180712 23:33:48 InnoDB: Waiting for the background threads to start

180712 23:33:49 InnoDB: 5.5.52 started; log sequence number 0

180712 23:33:49 InnoDB: !!! innodb_force_recovery is set to 6 !!!

180712 23:33:49 [ERROR] Aborting

 

180712 23:33:49 InnoDB: Starting shutdown...

180712 23:33:50 InnoDB: Shutdown completed; log sequence number 8204

180712 23:33:50 [Note]

 

 

2.问题分析:

这个日志里,没有两个错误,第一个是:

180712 23:33:48 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys'

had only 641 error messages,but it should contain at least 728 error messages.

第二个是:

180712 23:33:49 [ERROR] Aborting

开始因为第一个错误和第二个错误隔得很远,并没有在意,在排查了其他方面都没有问题后,

考虑原因是:第二个错误是由第一个错误引起,需要先处理下第一个错误

 

问题原因:

这类情况一般是一台主机上安装了其他版本的mysql产生的,很大可能是第一个的errmsg.sys

文件被后面版本的替代,这里的错误是指:errmsg.sys文件应该有 728个错误信息,但是当前

只有641个,与当前的程序版本无法对应上

 

问题处理:

我是下载与当前的版本相对应的二进制文件,解压后,从对应的目录下解压出来errmsg.sys文件

替换掉后启动,如下 

2d7c67b240fa2a43a96035a6a2ff6397f6ad468c



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值