Error establishing a database connection.
-
Hi, I cannot access my wp blog. When I type the url into the address bar I am prompted with this message:
Error establishing a database connection.
When I attempt to login to my wp account, I am prompted with this message:
One or more database tables are unavailable. The database may need to be repaired.
As the word repaired was hyperlinked I clicked on it and this is what it said:
To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.
define(‘WP_ALLOW_REPAIR’, true);
Ok, so I did that and reloaded the page and it gave me the following options:
1. One or more database tables is unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take awhile, so please be patient.
Repair Database
2. WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.
Repair and Optimize Database
I went ahead with option 1. and clicked on the repair database button. This was the result:
Some database problems could not be repaired. Please copy-and-paste the following list of errors to the WordPress support forums to get additional assistance.
And here is the list of error:wp_users: Table ‘napclub_wrdp1.wp_users’ doesn’t exist
wp_usermeta: Table ‘napclub_wrdp1.wp_usermeta’ doesn’t exist
wp_posts: Table ‘napclub_wrdp1.wp_posts’ doesn’t exist
wp_postmeta: Table ‘napclub_wrdp1.wp_postmeta’ doesn’t exist
wp_terms: Table ‘napclub_wrdp1.wp_terms’ doesn’t exist
wp_term_taxonomy: Table ‘napclub_wrdp1.wp_term_taxonomy’ doesn’t exist
wp_term_relationships: Table ‘napclub_wrdp1.wp_term_relationships’ doesn’t exist
Please can someone advise what to do. I would greatly appreciate it.
The topic ‘Error establishing a database connection.’ is closed to new replies.