18 February 2010 at 9:57am
Error: Couldn't connect to MySQL database
At line 401 in //sapphire/core/model/MySQLDatabase.php
Couldn't connect to MySQL database
Line 401 of MySQLDatabase.php
MySQLDatabase->databaseError(Couldn't connect to MySQL database)
Line 39 of MySQLDatabase.php
Line 79 of DB.php
Line 112 of main.php
Is anyone else receiving production errors along these lines? It seems sporadic, but I get emailed 2-3 times a month from different SS installs on different hosts. Not major, but then again some user somewhere is getting 500 response when accessing my sites. I'm wondering if it's a general error related to hosting provider networks, or something to do with SS response times if the site has been idle for a while. Any thoughts?
18 February 2010 at 10:35am
(Last edited: 18 February 2010 10:36am),
I was thinking of starting the same thread myself. Iâ€™m getting this error several times a day. I doubt itâ€™s SS-related, since nobody seems to complaint. The servers where Iâ€™m hosting my sites seems not too reliable, by the way Iâ€™m in the process of migrating from themâ€¦
EDIT: The error is sometimes: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111
18 February 2010 at 10:47am
Yea, could be a side effect of hosting providers usually pushing shared hosting to the limit. In any case, I got 2 errors in one minute from the same site at 9am today and another 3 in one minute at 10am. Hopefully it's not a trend.