My phpmyadmin stopped working. I reinstalled it and it gives error #2002. I found that this error is from mysql, which i couldn't repair and i begin to reinstall it. First I was with Debian 5.03, but i played with /etc/apt/sources.list and after upgrading
sudo apt-get update
sudo apt-get dist-upgrade
i have now 5.05
The problem is that when i install mysql-server a dependency appear in mysql-server-5.0. I follow this instructions
http://ariejan.net/2007/12/12/how-to...-ubuntudebian/
and after
sudo apt-get install mysql-server mysql-client
i get this error:
Code:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
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
Setting up libgtkhtml3.8-15 (3.12.3-3) ...
Setting up libhtml-template-perl (2.9-1) ...
Setting up libterm-readkey-perl (2.30-4) ...
Setting up mysql-gui-tools-common (5.0r12-1) ...
Setting up mysql-admin (5.0r12-1) ...
Setting up mysql-client (5.0.51a-24+lenny4) ...
Setting up mysql-query-browser (5.0r12-1) ...
Processing triggers for menu ...
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can i fix this dependency? I didn't find anything relative in google.
mysql-server-5.0 --configure gives error: command not found
Edit:
I uninstalled all related with mysql and execute
dpkg --purge mysql-server
then reboot and run first
apt-get install mysql-server-5.0 mysql-client-5.0
and then
apt-get install mysql-server mysql-client
There was no error
Code:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
but there was another error when run
mysql -u root -p
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)