1 頁 (共 1 頁)

[問題] 偶爾出現的錯誤???

發表於 : 2005-04-20 08:26
lzong
為什麼我有時候在瀏覽我的PHPbb時,有時就出現一個畫面,內容如下:
phpBB : Critical Error

Could not query config information

DEBUG MODE

SQL Error : 1226 User 'lzong' has exceeded the 'max_questions' resource (current value: 600)

SELECT * FROM phpbb_config

Line : 219
File : common.php
他有說common.php的第219行有問題,我看了一下,就是下面這個:

代碼: 選擇全部

	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
真的不知道該怎麼辦耶......請各位大大幫忙.....

發表於 : 2005-04-22 11:55
johnkk
你最好修復你的資料庫看看~~
也許資料庫有問題~

Re: [問題] 偶爾出現的錯誤???

發表於 : 2008-02-25 21:20
hsiehpc43
最近也遇到這個問題,是租用主機,並非免費空間。
訊息如下:

SQL Error : 1226 User 'biolab12_Tina' has exceeded the 'max_questions' resource (current value: 50000)

這個錯誤是指資料庫user使用過量,
我問過我的主機商,限制是每database user,1小時不能超過50000

所以,我們只要把資料庫改成多個dbuser即可解決這個問.
改config.php檔

把這行:
$dbuser = 'your dbuser';

替換成:
$dbusers = array('dbuser1', 'dbuser2', 'dbuser3');
$dbuser = $dbusers[array_rand($dbusers)];

紅字部份依您設定的dbuser名稱來決定