How to recover the plesk database?

Posted by Kau-Boy on Server Fault See other posts from Server Fault or by Kau-Boy
Published on 2011-01-04T09:09:01Z Indexed on 2011/01/04 10:56 UTC
Read the original article Hit count: 354

When I try to launch the Plesk administration page of you server I get the following error:

ERROR: PleskMainDBException
MySQL query failed: MySQL server has gone away

The MySQL Server is working well. Although it seems that the plesk database is somehow corrupt and any action on this database results in a restart of the mysql process, so even queries to other databases on the same MySQL server will be lost.

If I try to connect to the plesk database using phpMyAdmin, I can only see the number of tables, the database had originally. But I am not able to open the tables listing. As soon as I try it, the mysql process crashes again.

Trying to connect to the database using ssh works. I can even run a SELECT statement against any table an get a result.

I don't know if it is an plesk error or an error of the psa database or even the MySQL server. Can you give me any tips on how to recover the plesk system. Should I try to repair the Plesk installation before. And if so, how can I do it and will all my settings get lost doing it?

EDIT: Trying to dump the database, I get the following error:

mysqldump: Got error: 2013: Lost connection to MySQL server during query when using LOCK TABLES

© Server Fault or respective owner

Related posts about server

Related posts about plesk