package phpmyadmin 4:3.2.2.1-1 failed to install/upgrade: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).

Bug #537665 reported by avandobben
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: phpmyadmin

I tried to install phpmyadmin before installing MySQL 5.1 (was not a dependency as well)
Installing was on an (almost) clean machine with Ubuntu Desktop 9.10 installed

After I got this error message, phpmyadmin was installed and functioned fully.

Sort of spurious error.

ProblemType: Package
Architecture: amd64
Date: Thu Mar 11 21:51:22 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: phpmyadmin 4:3.2.2.1-1
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.31-20.57-generic
SourcePackage: phpmyadmin
Title: package phpmyadmin 4:3.2.2.1-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-20-generic x86_64

Revision history for this message
avandobben (avandobben) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The relevant error is
---
Setting up phpmyadmin (4:3.2.2.1-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf

Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version

Creating config file /etc/phpmyadmin/config-db.php with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: phpmyadmin configure: aborted.
dbconfig-common: flushing administrative password
dpkg: error processing phpmyadmin (--configure):
 subprocess installed post-installation script returned error exit status 1

Do you have a MySQL server configured and running locally ?

Changed in phpmyadmin (Ubuntu):
status: New → Incomplete
summary: - package phpmyadmin 4:3.2.2.1-1 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 1
+ package phpmyadmin 4:3.2.2.1-1 failed to install/upgrade: ERROR 2002
+ (HY000): Can't connect to local MySQL server through socket
+ '/var/run/mysqld/mysqld.sock' (2).
Revision history for this message
avandobben (avandobben) wrote :

No, I first installed phpmyadmin.
During the process I got the error.
Then I installed MySQL 5.1 server.
Aftert that phpmyadmin was functioning correctly.

In my opinion it is part of the bug that phpmyadmin installation does not check if MySQL server is running or not, but drops an error directly.

Changed in phpmyadmin (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.