无法在Ubuntu中安装mysql-server

前端之家收集整理的这篇文章主要介绍了无法在Ubuntu中安装mysql-server前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我无法在我的ubuntu 9.10服务器上安装 mysql-server.
使用apt-get install MysqL-server时输出为:
# apt-get install MysqL-server

Reading package lists... Done
Building dependency tree
Reading state information... Done

MysqL-server is already the newest version.
0 upgraded,0 newly installed,0 to remove and 120 not upgraded.
2 not fully installed or removed.

After this operation,0B of additional disk space will be used.
Setting up MysqL-server-5.1 (5.1.37-1ubuntu5.4) ...
* Stopping MysqL database server 
    MysqLd    [ OK ]
* Starting MysqL database server 
MysqLd [fail]

invoke-rc.d: initscript MysqL,action "start" Failed.

dpkg: error processing MysqL-server-5.1 (--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.1; however:
Package MysqL-server-5.1 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.1
MysqL-server  
E: Sub-process /usr/bin/dpkg returned an error code (1)

我无法在任何地方找到满意的解决方案.
许多网站告诉重新安装它,但它无法正常工作.

任何帮助将不胜感激.

谢谢..

这对我有用:
apt-get purge MysqL-server
apt-get purge MysqL-common
rm -rf /var/log/MysqL
rm -rf /var/log/MysqL.*
rm -rf /var/lib/MysqL
rm -rf /etc/MysqL
# and then:
apt-get install MysqL-server --fix-missing --fix-broken

虽然它也会删除MysqL上的所有依赖项.

它还将删除现有数据库,先备份!

Source.

猜你在找的Ubuntu相关文章