MySQL安装失败

MySQL安装失败

我尝试使用 Synaptic 安装 MySQL,但更新时无法启动,输出如下:

Selecting previously unselected package mysql-client.
(Reading database ... 131143 files and directories currently installed.)
Unpacking mysql-client (from .../mysql-client_5.5.29-0ubuntu0.12.04.1_all.deb) ...
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.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
Setting up mysql-client (5.5.29-0ubuntu0.12.04.1) ...
Errors were encountered while processing:
 mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ...
130201 13:36:05 [Note] Plugin 'FEDERATED' is disabled.
130201 13:36:05 InnoDB: The InnoDB memory heap is disabled
130201 13:36:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130201 13:36:05 InnoDB: Compressed tables use zlib 1.2.3.4
130201 13:36:05 InnoDB: Initializing buffer pool, size = 128.0M
130201 13:36:05 InnoDB: Completed initialization of buffer pool
130201 13:36:05 InnoDB: highest supported file format is Barracuda.
130201 13:36:06  InnoDB: Waiting for the background threads to start
130201 13:36:07 InnoDB: 1.1.8 started; log sequence number 1595685
130201 13:36:07  InnoDB: Starting shutdown...
130201 13:36:08  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
Errors were encountered while processing:
 mysql-server-5.5

我不知道如何分解初始化失败的地方,或者如何开始它。我是否可能在某个地方缺少一个可以解释此问题的图书馆?禁用的“FEDERATED”插件有关系吗? InnoDB到底发生了什么?

答案1

你有MySQL服务器,还是只有客户端?这服务器是你应该开始的。检查一下你是否有那个。

$ sudo apt-get install mariadb-server

然后运行:

$ sudo service mariadb start Redirecting to /bin/systemctl start mariadb.service

请注意,mariadb 本质上是 MySQL。另外,发布您正在使用的命令,而不仅仅是输出。另外,我使用的是 CentOS,所以我的输出可能与你的不同。

相关内容