gpt4 book ai didi

mysql - 错误安装 MySQL : Can't find messagefile '/usr/share/mysql/errmsg.sys'

转载 作者:行者123 更新时间:2023-11-29 01:03:04 28 4
gpt4 key购买 nike

我无法在 Ubuntu 14.04 中安装 MySQL,因为它总是卡在:

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 的所有包:

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 的临时目录:

cd /var/lib/dpkg/updates
rm *
apt-get update

或者复制文件errmsg.sys:

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总是报错。我已经尝试修复它好几天了。怎么解决?

最佳答案

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

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 &

关于mysql - 错误安装 MySQL : Can't find messagefile '/usr/share/mysql/errmsg.sys' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27573316/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com