Database error for login WordPress site
-
Hello,
for one of my WordPress site, since today (yesterday, i had no problem to login), it’s impossible to login:“Error establishing a database connection” message for “wp-login” for the site.
or
“One or more database tables are unavailable. The database may need to be repaired.” message for “wp-admin” of the site.
I have added then the command “define(‘WP_ALLOW_REPAIR’, true);” in the file indicated by WordPress.
Then, i have a screen with 2 buttons (one “Repair Database” and the second “Repair and Optimize Database”).
When i hit one (or the other) button, it’s immediately displaying a screen with:
“Are you sure you want to do this?
Please try again.”
And when i try to login, the same error described at the beginning of my post appears.
I have entered in my Hosting CPanel and i checked the database of the site that has a problem. All was OK.
I have also “repaired” it to see.
But always the same error when i try to login to my WordPress site appears.
Please, can you help me to solve this problem because i don’t see how to do?
Thank you. Marc.
The topic ‘Database error for login WordPress site’ is closed to new replies.