首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装mysql时出错:找不到消息文件'/usr/share/mysql/errmsg.sys‘

安装mysql时出错:找不到消息文件'/usr/share/mysql/errmsg.sys‘
EN

Stack Overflow用户
提问于 2014-12-20 04:18:54
回答 1查看 8.2K关注 0票数 3

我无法在Ubuntu14.04中安装MySQL,因为它总是卡在:

代码语言:javascript
运行
复制
apt-get install mysql-server-5.6
...
2014-12-19 20:15:06 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2014-12-19 20:15:06 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-12-19 20:15:06 11693 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'

lqqqqqqqqqqqqqu Configuring mysql-server-5.6 tqqqqqqqqqq
x                                                                                                                                                                                                                  x
x Unable to set password for the MySQL "root" user                                                                                                                                                                 x
x                                                                                                                                                                                                                  x
x An error occurred while setting the password for the MySQL administrative user. This may have happened because the account already has a password, or because of a communication problem with the MySQL server.  x
x                                                                                                                                                                                                                  x
x You should check the account's password after the package installation.                                                                                                                                          x
x                                                                                                                                                                                                                  x
x Please read the /usr/share/doc/mysql-server-5.6/README.Debian file for more information.                                                                                                                         

我已经尝试卸载MySQL的所有软件包:

代码语言:javascript
运行
复制
apt-get purge mysql-server-5.6
apt-get purge mysql-client-5.6
apt-get purge mysql-common
rm -rf /var/log/mysql
rm -rf /var/log/mysql.*
rm -rf /var/lib/mysql
rm -rf /etc/mysql

并删除dpkg的临时目录:

代码语言:javascript
运行
复制
cd /var/lib/dpkg/updates
rm *
apt-get update

或者复制文件errmsg.sys:

代码语言:javascript
运行
复制
cp /usr/local/mysql/share/english/errmsg.sys /usr/share/mysql/errmsg.sys
sudo chown mysql:mysql /usr/share/mysql/errmsg.sys

我卸载了tomcat7、apache2、php,在安装MySQL时总是出错。我试着修了好几天了。怎样才能修复它?

EN

回答 1

Stack Overflow用户

发布于 2016-08-11 03:25:01

您可以下载tar.gz压缩包,然后按照以下说明进行安装。请参阅MySQL中的说明:

代码语言:javascript
运行
复制
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27573316

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档