Persistent “Error Establishing Database Connection” When DB OK
-
[ Moderator note: moved to How-to and Troubleshooting. ]
Hi,
Tearing my hair out here. Website seeva.com.au. Under development so I don’t want to lose a week’s work!
Sequence of events:
- Saw the update notification to WordPress 4.7;
- Backed up everything (WordPress and database) using Updraft Plus;
- Installed the updates – WP, themes (inc. Divi), plugins (BTW I use a child theme);
- Then noticed that the Divi Child theme was showing an error in being unable to find the style.css template even though I hadn’t changed anything;
- Tried to fix the Child theme but WordPress wasn’t even recognising it;
- Decided to restore to the back-up taken just before the update;
- After the restore it was saying that the WordPress DB was needing repair;
- Repair function stated that all the tables were OK and to remove the above parameter;
- Did the same from phpmyadmin but of course InnoDB doesn’t allow for repair, but the check function worked fine;
- I uploaded a fresh version of WordPress 4.7 less wp-config.php and wp-content;
- Reinstated wp-content and wp-config;
- Checked permissions on the base files and folders;
- Renamed plugin and theme directory to deactivate;
- Used a test script to check the db connection and no probs (https://gist.github.com/sivel/162913).
Please help.
Regards
David
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Persistent “Error Establishing Database Connection” When DB OK’ is closed to new replies.