我面临与这篇文章相同的问题。 drupal视图模块mysql错误
我在 /opt/lampp/etc/my.cnf 将 max_allowed_packet 从 1M 增加到 60M 但是当我尝试在结构中添加所有内容时问题仍然存在。这是屏幕代码。
处理异常时抛出额外的未捕获异常。
原来的
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {uc_product_classes}; Array ( ) in uc_product_class_load() (line 1704 of /opt/lampp/htdocs/advanced-a/sites/all/modules/uc_product/uc_product.module).
额外的
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ff.* FROM {filter_format} ff WHERE (status = :db_condition_placeholder_0) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 ) in filter_formats() (line 407 of /opt/lampp/htdocs/advanced-a/modules/filter/filter.module).
会话处理程序中抛出未捕获的异常。
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 206 of /opt/lampp/htdocs/advanced-a/includes/session.inc).
任何帮助将不胜感激。