MySQL 无法启动,我需要一些帮助来找出原因。
$ download mysql-common
[sudo] password for zero:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 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
Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ...
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up libmysqlclient18:amd64 (5.5.31-0ubuntu0.13.04.1) ...
Setting up libdbd-mysql-perl (4.021-1) ... Setting up mysql-client-5.5 (5.5.31-0ubuntu0.13.04.1) ... Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ... 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 No apport report written because MaxReports is reached already 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 MaxReports is reached already Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for ureadahead ... Errors were encountered while processing: mysql-server-5.5 mysql-server
答案1
在安装过程中,upstart 尝试启动 mysqld 但由于某种原因失败时,就会发生这种情况。
请检查/var/log/syslog或者 mysql 在启动 mysqld 时将错误记录到 /var/log/mysql 中。这应该有助于您调试,什么问题阻碍了 mysqld 正确启动。
其他人已成功清除并重新安装 mysqld,但这仅适用于新安装的情况。