首页 > 代码库 > mariadb 二进制启动报错,Can't find messagefile '/usr/local/mysql/share/mysql/errmsg.sys'

mariadb 二进制启动报错,Can't find messagefile '/usr/local/mysql/share/mysql/errmsg.sys'


直接看操作步骤


[root@mysql91 share]# mysqld_safe --defaults-file=/etc/my.cnf &

[1] 3482

[root@mysql91 share]# 170103 18:48:58 mysqld_safe Logging to ‘/log/mysql/error.log‘.


[1]+  Done                    mysqld_safe --defaults-file=/etc/my.cnf

[root@mysql91 share]# vi /log/mysql/error.log 

............

2017-01-03 18:48:58 140215358961696 [ERROR] Can‘t find messagefile ‘/usr/local/mysql/share/mysql/errmsg.sys‘

2017-01-03 18:48:58 140215358961696 [ERROR] Aborting

............


[root@mysql91 share]# vi /etc/my.cnf


添加[mysqld]

language = /usr/local/mysql/share/english


[root@mysql91 english]# cd /usr/local/mysql/share/english

[root@mysql91 english]# file errmsg.sys 

errmsg.sys: data     --数据文件,可以不用看了


[root@mysql91 english]# mysqld_safe --defaults-file=/etc/my.cnf &

[1] 3725

[root@mysql91 english]# 170103 18:56:07 mysqld_safe Logging to ‘/log/mysql/error.log‘


mariadb 二进制启动报错,Can't find messagefile '/usr/local/mysql/share/mysql/errmsg.sys'