couldn't connct to my-sql. error 2002(HY000)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.0 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
using jaunty. mysql wldn't connct.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
tried to reinstall.
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 1 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.1.30really5.
* Stopping MySQL database server mysqld [ OK ]
* Reloading AppArmor profiles ... [ 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
No apport report written because the error message indicates its a followup error from a previous failure.
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage:
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelMo
Package: mysql-server-5.0 5.1.30really5.
SourcePackage: mysql-dfsg-5.0
Title: package mysql-server-5.0 5.1.30really5.
Uname: Linux 2.6.28-12-generic i686
affects: | ubuntu → mysql-dfsg-5.0 (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Could you please provide the following information:
* content of /var/log/daemon.log related to mysql processes:
/var/ log/daemon. log
* apparmor audit messages related to mysqld:
/var/ log/kern. log
* mysqld apparmor profile:
/etc/ apparmor. d/usr.sbin. mysqld
* list of mysqld apparmor profiles:
ls -l /etc/apparmor. d/usr.sbin. mysqld*
* mysql configuration stripped of private information (such as password):
/etc/ mysql/my. cnf
* extra mysql configuration from the conf.d directory:
/etc/ mysql/conf. d/
* directory listing of mysql datadir (by default /var/lib/mysql):
ls -l /var/lib/mysql