Due to some important hardware failure, the wp_options
table of one of my WP sites became corrupted, but everything else is okay (WP files and other tables). Obviously the site does not work because of this, and I had no backups.
What would be the best way to repair this? How can I create a fresh wp_options
table for my WP version?
Uh oh, that’s an important table. You might have lost a bunch of options, but you can still repair the database. WordPress allows a repair mode, which you can repair the database.
Open the wp-config.php
file using FTP, and add this line before the ABSPATH
:
define( 'WP_ALLOW_REPAIR', true );
now head over to :
http://yourdomain.com/wp-admin/maint/repair.php
Follow the steps to repair your broken database.