2

我面临与这篇文章相同的问题。 drupal视图模块mysql错误

我在 /opt/lampp/etc/my.cnf 将 max_allowed_pa​​cket 从 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).

任何帮助将不胜感激。

4

2 回答 2

0

对于 max_allowed_pa​​cket 来说,这是一个相当高的设置(几乎就像有人告诉您将其设置为 16 但您听到它为“六十”一样)

尽管如此,您是否也对 my.ini 进行了必要的更改?

https://drupal.org/files/my.ini_.patch

于 2013-09-05T02:42:30.490 回答
0

更改max_allowed_packet = 1Mmax_allowed_packet = 16M_my.ini

于 2014-02-24T09:12:20.327 回答