I’m unable to access my blog after deleting a spam post on it. I’m not sure what had happened, but the exact message was, “One or more database tables are unavailable. The database may need to be repaired.”
I added “define(‘WP_ALLOW_REPAIR’, true);” to the wp-config.php file and I ended up with a “Error establishing a database connection”
Here’s what’s in the wp-config.php file.
define('WP_ALLOW_REPAIR', true); <?php // ** MySQL settings ** // define('WP_CACHE', true); //Added by WP-Cache Manager define('DB_NAME', '[ redacted ]'); // The name of the database define('DB_USER', '[ redacted ]'); // Your MySQL username define('DB_PASSWORD', '[ redacted ]'); // ...and password define('DB_HOST', 'mysql'); // 99% chance you won't need to change this value // Change the prefix if you want to have multiple blogs in a single database. $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_' // Change this to localize WordPress. A corresponding MO file for the // chosen language must be installed to wp-includes/languages. // For example, install de.mo to wp-includes/languages and set WPLANG to 'de' // to enable German language support. define ('WPLANG', ''); /* Stop editing */ define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php'); ?>
What do I need to do at this point?
- The topic ‘Unable to access my blog’ is closed to new replies.