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

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: [ERROR] Error message file '/usr/share/mysql/english /errmsg.sys' had only 641 error messages,but it should contain at least 728 error messages.

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

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

 

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



相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
7月前
|
关系型数据库 MySQL
mysqlbinlog: File ‘mysql-bin.000001;‘ not found (Errcode: 2 - No such file or directory)
mysqlbinlog: File ‘mysql-bin.000001;‘ not found (Errcode: 2 - No such file or directory)
266 0
|
7月前
|
应用服务中间件 PHP nginx
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
128 1
|
5月前
|
关系型数据库 MySQL
MySQL - File /var/log/mysql/mysql-bin.index not found (Errcode 13 - Permission denied)
MySQL - File /var/log/mysql/mysql-bin.index not found (Errcode 13 - Permission denied)
|
7月前
|
应用服务中间件 PHP nginx
PHP ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
PHP ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
54 1
|
7月前
|
安全 关系型数据库 MySQL
mysqld: Can‘t read dir of ‘/etc/mysql/conf.d/‘ (Errcode: 13 - Permission denied)
mysqld: Can‘t read dir of ‘/etc/mysql/conf.d/‘ (Errcode: 13 - Permission denied)
441 1
|
关系型数据库 MySQL Linux
Error message file '/usr/share/mysql/english/errmsg.sys'
之前无意间遇到了一个数据库启动问题,说一下自己的解决办法
Error message file '/usr/share/mysql/english/errmsg.sys'
|
关系型数据库 MySQL
MySQL 启动错误: [ERROR] Can't find messagefile '/usr/share/errmsg.sys'(转载)
110623 21:49:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 110623 21:49:41 [ERROR] Can't find messagefile '/usr/share/errmsg.
4823 0
|
关系型数据库 MySQL Linux
MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)
转载自:http://www.jb51.net/article/53026.htm Linux下安装初始化完MySQL数据库之后,使用mysqld_safe启动mysql数据库,如下发现,启动失败 [root@SVNServer bin]# .
1514 0