package phpmyadmin 4:3.3.2-1 failed to install/upgrade: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Bug #739824 reported by ivo22bg
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: phpmyadmin

My flashplugin was crashed. Then I've removed and reinstalled the flash. The flash was repaired but now phpmyadmin is gone.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: phpmyadmin 4:3.3.2-1
ProcVersionSignature: Ubuntu 2.6.32-30.59-generic 2.6.32.29+drm33.13
Uname: Linux 2.6.32-30-generic x86_64
Architecture: amd64
Date: Tue Mar 22 01:26:08 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
PackageArchitecture: all
SourcePackage: phpmyadmin
Title: package phpmyadmin 4:3.3.2-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Revision history for this message
ivo22bg (ivo22bg) wrote :
Revision history for this message
shankao (shankao) wrote :

After watching at the dpkg logs, it seems that mysql was not accessible at the moment of the phpadmin update. Can you check that it's running and try to reinstall the package? thanks!

Setting up phpmyadmin (4:3.3.2-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
Replacing 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)

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

Thank you shankao. After MySQL password reseting everything starts working well and phpmyadmin completed installations. Here is my solution:
MySQL HACK-> Can NOT log-in - Access denied:

look for more here-> http://ubuntuforums.org/showthread.php?t=346390

-------------
$ mysql -u root

mysql>use mysql;

mysql> INSERT INTO user (host, user, password, select_priv, insert_priv, update_priv) VALUES ('localhost', 'mysqluser', PASSWORD('secret'), 'Y', 'Y', 'Y');

Query OK, 1 row affected (0.20 sec)

mysql> FLUSH PRIVILEGES;

Query OK, 1 row affected (0.01 sec)

(This will add the user "mysqluser" with the password "secret")
-------------
That's it. Thank you again.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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