-1

保存视图后,我在 Drupal 7 的所有页面上都出现了这个错误。经过一些研究,我认为 Mysql 中的“最大允许数据包”设置得太低......目前是 68MB。我已要求将其设置为 250MB。但欢迎对该问题进行任何进一步的诊断。

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).

谢谢

4

1 回答 1

0

为了解决这个问题,PlatinumServerManagement.com 的人增加了 mysql 配置文件中的等待超时值。

于 2012-11-09T09:55:52.820 回答