2012-03-04 29 views
0

我有一個網站在託管服務器之一的joomla下。直到昨天它工作正常。但是,從昨天開始,當我打開網站它給了我以下錯誤:500 - 沒有有效的數據庫連接:MySQL服務器已經消失

500 - No valid database connection:MySQL server has gone away SQL=SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug FROM jos_content AS a INNER JOIN jos_categories AS cc ON cc.id = a.catid INNER JOIN jos_sections AS s ON s.id = a.sectionid WHERE a.state = 1 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-03-04 17:59:41') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-03-04 17:59:41') AND s.id > 0 AND a.access <= 0 AND cc.access <= 0 AND s.access <= 0 AND s.published = 1 AND cc.published = 1 ORDER BY a.created DESC LIMIT 0, 5 

或者有時候它只是說:

Internal Server Error. 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. 

More information about this error may be available in the server error log. 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 

出了什麼問題呢?或者是主機中心有問題?

+2

這意味着...數據庫連接已經消失;你不再有聯繫。該插座是一個ex插座。它存在的唯一原因是它的腳被釘在界面上。 – 2012-03-04 18:12:50

回答

0

將數據庫類型從mysql更改爲mysqli。