PleskMainDBException...help, I'm sooo lost
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You could run this to repair all repairable problems in all databases with a single command:
See here for more info on the mysqlcheck command. Using the REPAIR TABLE command from within mysql or using phpMyAdmin should work as well though.
Code: Select all
mysqlcheck --repair --all-databases -uadmin -p`cat /etc/psa/.psa.shadow`
Lemonbit Internet Dedicated Server Management
Running the command as you suggested yielded some interesting results.
I got that for 90% of the psa tables (about 5 returned 'OK'). If I run the --analyze option, those 5 tables returned the following:psa.BackupTasks
note : The storage engine for the table doesn't support repair
The rest say 'OK'Table is already up to date
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Oh yes, the psa db uses the InnoDB storage engine and mysqlcheck doesn't support repairing InnoDB tables apparently. Try using the CHECK TABLE and REPAIR TABLE commands directly.
Have you tried restoring the psa db once more?
Have you tried restoring the psa db once more?
Lemonbit Internet Dedicated Server Management
Such as this?
As for restoring the psa db once more, do you mean taking a different daily dump, restoring the db two times in a row (which, come to think of it, prob won't work) or just trying it on a different occasion? I have restored it twice now since Plesk was hosed upon reboot.
Code: Select all
mysql> check table BackupTasks;
+-----------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------+-------+----------+----------+
| psa.BackupTasks | check | status | OK |
+-----------------+-------+----------+----------+
1 row in set (0.01 sec)
mysql> repair table BackupTasks;
+-----------------+--------+----------+---------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-----------------+--------+----------+---------------------------------------------------------+
| psa.BackupTasks | repair | note | The storage engine for the table doesn't support repair |
+-----------------+--------+----------+---------------------------------------------------------+
1 row in set (0.00 sec)
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Since CHECK TABLE says it's OK, I guess there's nothing to repair. But I to admit I don't know how to repair an InnoDB table then.
Yes, I meant just doing the restore on a different occasion. Restoring the db fixes your problem, but on reboot it is hosed again? Every time?
Yes, I meant just doing the restore on a different occasion. Restoring the db fixes your problem, but on reboot it is hosed again? Every time?
Lemonbit Internet Dedicated Server Management