Linux下安装Mysql启动错误 :[ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'

今天在centos7上安装MySQL;初始化mysql并启动mysql服务时报错:

2018-12-08T04:44:35.615454Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2018-12-08T04:44:35.615478Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2018-12-08T04:44:35.635176Z 0 [ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'

 

原因:/usr/share/mysql/english/errmsg.sys 文件不是mysql的内容;

解决方法:

   将mysql安装目录下的share/english/errmsg.sys 文件覆盖  /usr/share/mysql/english/errmsg.sys文件;

命令行:

cp mysql/share/english/errmsg.sys /usr/share/mysql/english/errmsg.sys 

前提是先进入到MySQL的安装目录;根据自己的目录来修改上面的命令;

 

你可能感兴趣的:(Linux下安装Mysql启动错误 :[ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys')