Ubuntu MySQL 安装问题

Ubuntu MySQL 安装问题

我已经使用了“sudo apt-get install mysql-server”,它询问我是否要安装 2 个文件。

mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? 

我输入 Y(表示是)

配置窗口弹出,要求设置 root 密码。我输入密码后,系统继续安装。

一切顺利...直到;

120420 14:47:45  InnoDB: Starting shutdown...
120420 14:47:46  InnoDB: Shutdown completed; log sequence number 1595685
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--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.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

任何帮助均感激不尽。

答案1

看一下 mysql 日志,我相信你会找到一些很容易修复的无法启动的原因。

答案2

它不会生成任何日志。很多人报告这是一个错误,但我在任何网站上都找不到解决方案。

相关内容