[英]dpkg cannot install phpMyAdmin and MySQL (Ubuntu)
I'm attempting to install phpMyAdmin, but I constantly get errors. 我正在尝试安装phpMyAdmin,但是我经常遇到错误。
When I type this in the terminal: 当我在终端中输入以下内容时:
sudo dpkg --configure -a
The following message appears: 出现以下消息:
Setting up mysql-server-5.0 (5.0.45-1ubuntu3) ... * 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.0 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.0; however: Package mysql-server 5.0 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encounter while processing: mysql-server-5.0 mysql-server
I also attempt to access MySQL through the console by typing: mysql
我也试图通过键入通过控制台访问MySQL:
mysql
This error appears: 出现此错误:
ERROR (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
This occurred ever I tried to install phpMyAdmin or accessing my libapache
. 每当我尝试安装phpMyAdmin或访问我的
libapache
发生这种情况。 Does anyone know how to resolve these problems? 有谁知道如何解决这些问题?
The installer error is related to the mysql-server-5.0
package. 安装程序错误与
mysql-server-5.0
软件包有关。 You probably should do an apt-get purge mysql-server-5.0
and then try reinstalling it. 您可能应该执行
apt-get purge mysql-server-5.0
,然后尝试重新安装它。 Once that has been installed, try and install phpmyadmin. 安装完成后,尝试安装phpmyadmin。
You might also be able to get away with 您也许还可以摆脱
dpkg --configure mysql-server-5.0
since 'mysql-server' is a meta package. 因为“ mysql-server”是一个元软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.