unable to connect to database

Permalink
I have six c5 sites all on the same host, 5 of which are simultaneously returning the same error: "unable to connect to database". I've checked with the host, they say the databases are functional, which makes sense because site number 6 is operational. All six sites are running 5.6.0.2 and, again, are on the same host.

Any clue what might be going on?

jamesfinn
 
JohntheFish replied on at Permalink Reply
JohntheFish
You could start by cross-referencing the database info in config/site.php with the actual database details and the database 'users' from your host control panel or phpMyAdmin (depends on what facilities your host provides).
jamesfinn replied on at Permalink Reply
jamesfinn
Thank you JohntheFish - I already checked that data, it is a match. I was on my sites last night. Everything was fine when I went to bed!
jamesfinn replied on at Permalink Reply
jamesfinn
Now I'm getting this:

"Fatal error: Class 'View' not found in /***/***/updates/concrete5.6.0.2/concrete/core/libraries/loader.php on line 251"


Line 251 of said file reads:

} else if (defined('DB_SERVER')) {
                  $v = View::getInstance();
                  $v->renderError(t('Unable to connect to database.'), t('A database error occurred while processing this request.'));


WTF?!
jamesfinn replied on at Permalink Reply
jamesfinn
Another note: logic leads me to assume that it has something to do with the update to 5.6.0.2.

I have six c5 sites running on the same server. 5 out of the 6 decide to throw the same error: "unable to connect to database", etc. The same 5 of 6 that were updated. (site number 6 was built w/ a fresh install of 5.6.0.2).
JohntheFish replied on at Permalink Reply
JohntheFish
How long ago was the update?

How long have they been running OK with the update before you got the problem?
jamesfinn replied on at Permalink Reply
jamesfinn
I ran the updates without incident on all 5 sites as soon as the update was available in the dashboard (late 2012 sometime). As unlikely as it is, I've only cited the update as a possible cause because the only c5 site of mine that is currently operational was the one that was never updated.
JohntheFish replied on at Permalink Reply
JohntheFish
For all 5 sites to glitch at the same time I would expect it to be something to do with the environment rather than an ageing affect since the upgrade. A few more ideas.

- Common addons that have recently been updated?

- Changes to the host environment (apcahe version, mysql version, php version, security settings)?

- Anything special going on in .htaccess?

- Spot check the index and dispatcher php code to make sure nothing has been hacked.
jamesfinn replied on at Permalink Reply
jamesfinn
question closed:

@johnthefish: thanks for your time. It means a lot. I finally got the host to admit it was a problem on their end. This morning they said everything was fine. Now they say they are aware of the problem and are working on it. I guess I was the first one to notice!

Thanks again.