Answer the question
In order to leave comments, you need to log in
How to restore innoDB after a crash?
The standard situation is that the client applied with a problem on the server, in fact it turned out to be 100% of the disk occupied
. As a result, the innoDB logs refused to work as a result of the failure of the database.
After cleaning the server, the databases naturally stopped starting, reporting "111"
After mv files, mysql also refused to start.
I immediately had to write
innodb_force_recovere = 2
, while it started up quite well on it, but things didn’t go any further. An error in the InnoDB tables
. But they are locked for writing
, and mysqlchck doesn’t help either.
Answer the question
In order to leave comments, you need to log in
Stop all apache and php-fpm, if any, so that nothing works with the base. Stop muscle itself and archive /var/lib/mysql just in case, so that if something goes wrong, you can return to the original state.
Then start the database with innodb_force_recovery from 3 to 6 and do a dump, start with 3, if the dump is not done, then increase it.
If everything is completely bad and the dump is not done even at level 6, then it is necessary to merge table by table. If it doesn’t merge anyway, often all sorts of large log tables, then you can merge the pure table schema --no-data key from them.
Then you stop everything, delete the ibdata, ib_log* files, and all files with the .ibd extension, start muscle in normal mode and download the dumps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question