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

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
云数据库 RDS PostgreSQL,高可用系列 2核4GB
简介: 之前无意间遇到了一个数据库启动问题,说一下自己的解决办法

作者:手辨




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


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


 


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




相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。   相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情: https://www.aliyun.com/product/rds/mysql 
相关文章
|
8月前
|
关系型数据库 MySQL Docker
docker pull mysql:8.0.26提示Error response from daemon: Get “https://registry-1.docker.io/v2/“: EOF错误
docker pull mysql:8.0.26提示Error response from daemon: Get “https://registry-1.docker.io/v2/“: EOF错误
|
SQL 关系型数据库 MySQL
mysql密码错误-ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using passwor:yes)
这篇文章提供了解决MySQL数据库"Access denied for user 'root'@'localhost' (using password: YES)"错误的方法,通过跳过密码验证、修改root密码,然后重启服务来解决登录问题。
mysql密码错误-ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using passwor:yes)
|
10月前
|
网络协议 关系型数据库 MySQL
MySQL报ERROR 2002 (HY000)解决
通过上述步骤,可以有效地解决MySQL连接时出现的 `ERROR 2002 (HY000)`错误。这些步骤包括检查和启动MySQL服务、配置文件检查、套接字文件检查、日志文件分析、进程检查、防火墙设置、客户端配置和最终的MySQL重装。确保每个步骤都按顺序执行,有助于快速定位和解决问题,使MySQL服务器恢复正常运行。
7492 0
|
缓存 关系型数据库 MySQL
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
826 19
|
关系型数据库 MySQL Linux
error: Failed dependencies: libncurses.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 libtinfo.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 如何解决?
error: Failed dependencies: libncurses.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 libtinfo.so.5()(64bit) is needed by mysql-community-client-8.0.36-1.el7.x86_64 如何解决?
1879 3
|
关系型数据库 MySQL 测试技术
MySQL 报错 ERROR 1709: Index column size too large
MySQL 报错 ERROR 1709: Index column size too large
575 4
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
1483 2
|
关系型数据库 MySQL Java
【Azure 应用服务】应用服务连接 Azure MySQL 一直失败,报错 Create connection error
【Azure 应用服务】应用服务连接 Azure MySQL 一直失败,报错 Create connection error
116 0
|
SQL 关系型数据库 MySQL
You have an error in your SQL syntax;check the manual that corresponds to you Mysql server version
You have an error in your SQL syntax;check the manual that corresponds to you Mysql server version
|
27天前
|
安全 关系型数据库 MySQL
MySQL安全最佳实践:保护你的数据库
本文深入探讨了MySQL数据库的安全防护体系,涵盖认证安全、访问控制、网络安全、数据加密、审计监控、备份恢复、操作系统安全、应急响应等多个方面。通过具体配置示例,为企业提供了一套全面的安全实践方案,帮助强化数据库安全,防止数据泄露和未授权访问,保障企业数据资产安全。

推荐镜像

更多