The following
Quote:
|
"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)"
|
usually implies that the MySQL server is not running or has halted for one reason or another. However given that you can access PhpMyAdmin and it's not causing any problems with a new database I would guess that this problem is no longer existing.
Do you know how it's corrupt? Have you got an error specifying so?
Use myisamchk on MyISAM tables, and use CHECK TABLE and REPAIR TABLE on InnoDB tables.