Lost the `wp_options` table: what’s the best way to restore the site?

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.

Leave a Comment