-1
保存一個視圖後,我得到了這個錯誤出現在Drupal 7的所有頁面。經過一番研究,我認爲這是一個問題,在設置Mysql的「最大允許數據包」太低...目前68MB。我要求它被設置爲250MB。但任何進一步的診斷問題都會受到歡迎。Drupal 7 PDOException:(可能是一個max_packet_size問題?)
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT format, type, language FROM {date_format_locale}; Array () in system_date_format_locale() (line 3650 of /home/mysite/public_html/beta1/modules/system/system.module).
Additional
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ([:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:132:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT format, type, language FROM {date_format_locale}; Array () ";s:9:"%function";s:27:"system_date_format_locale()";s:5:"%file";s:61:"/home/mysite/public_html/beta1/modules/system/system.module";s:5:"%line";i:3650;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://beta1.mysite.co.uk/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 83.244.234.228 [:db_insert_placeholder_9] => 1352306457) in dblog_watchdog() (line 157 of /home/mysite/public_html/beta1/modules/dblog/dblog.module).
Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 206 of /home/mysite/public_html/beta1/includes/session.inc).
感謝
李
上'max_packet_size'是這裏的問題,該意見模塊產生的緩存字符串是巨大的我敢打賭,我的房子。 [你並不孤單](http://drupal.stackexchange.com/questions/32642/nasty-database-error-when-adding-any-type-of-content/32645#32645) – Clive
嗨克萊夫,我想這絕對是部分與它做的,但PlatinumServerManagement的人,爲了解決這個問題,他們增加了mysql配置文件中的等待超時值。我有一個特別的觀點,那就是拉回太多的結果。 –