无法(重新)安装MySQL 5.6

时间:2015-04-20 14:57:00

标签: mysql installation debian

我有以下问题:我想再次安装MySQL(我删除了ibdata文件,所以我不得不再次安装它)。我必须使用 apt-get purge mysql-server mysql-common 删除MySQL。然后我用 apt-get install mysql-server 再次安装它。

安装开始很好,但后来我收到错误。一旦我在这个蓝色终端窗口输入了MySQL密码,我就收到错误。

这也是一个蓝色对话。这是错误:

Package configuration


 ┌─────────────────────┤ Configuring mysql-server-5.6 ├──────────────────────┐
 │                                                                           │
 │ Unable to set password for the MySQL "root" user                          │
 │                                                                           │
 │ 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.                                                                   │
 │                                                                           │
 │ You should check the account's password after the package installation.   │
 │                                                                           │
 │ Please read the /usr/share/doc/mysql-server-5.6/README.Debian file for    │
 │ more information.                                                         │
 │                                                                           │
 │                                  <Ok>                                     │
 │                                                                           │
 └───────────────────────────────────────────────────────────────────────────┘

但它不仅仅是错误。这两个错误。当MySQL服务器尝试启动时,此错误即将发生。 MySQL无法启动,我收到了这个错误:

[....] Starting MySQL database server: mysqldNo directory, logging in with HOME=/
[FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.6; however:
  Package mysql-server-5.6 is not configured yet.

dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.6
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人能帮助我吗?我绝望:(

谢谢!

0 个答案:

没有答案