Having changed nothing on my Wordpress based site, a few days ago it simply stopped functioning. Prior to that, I was getting a larger than normal number of "site down' messages from a service that I use to monitor this site.
Now, all I get when trying to access the site is the error listed in the title. ONLY the message "Error establishing a database connection" shows on the page - nothing else.
I have other blog sites running on the same server and they are all still functioning. I can access the database for this website with phpmyadmin no problem. I have also done a "repair" on the wp-options table through phpmyadmin (recommended on another site).
Lastly, I created a new php file that makes a connection to the database and then echo's data from the database upon connection. I transferred all database connection data directly from the wp-config file for this site to this new php file, so it's connecting with the exact same info.
No problems connecting with this file.
However, if I clear out this file and then place only the following code in it:
<?php
require_once '/home/bestsynt/public_html/wp-config.php';
global $current_user;
get_currentuserinfo();
$level = $current_user->user_level;
echo $level;
?>
I receive the exact same error message.
Since this is a relatively high traffic site and it's been down now for two days. Since the problem doesn't appear to be on the "server/host" end, I'm not likely to get much support on that end. It's something to do with Wordpress itself, but I have no idea what.
