我无法在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时总是出错。 我试图解决它好几天了。怎么能解决它?
答案 0 :(得分:0)
您可以下载tar.gz tarball,然后按照以下说明进行安装。请参阅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 &