你在这里

添加内容类型时发生如下错误

主标签

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {uc_product_classes}; Array ( ) in uc_product_class_load() (line 1453 of C:\inetpub\drupal7\sites\all\modules\ubercart\uc_product\uc_product.module).

Additional

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 427 of C:\inetpub\drupal7\modules\filter\filter.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of C:\inetpub\drupal7\includes\session.inc).

 

Drupal 版本: 

猜你喜欢

mysql数据库超时了。。。优化下mysql数据库设置

开发环境还是正式环境?正式环境建议不要采用windows系统。

 

正式环境是windows,已经试过了,max_allowed_packet = 32M,原先我mysql.ini里没有max_allowed_packet = 32M

以集成环境XAMPP为例:

修改 xampp/mysql/bin/my.ini,搜索“max_allowed_packet”,并修改为:

max_allowed_packet = 32M

然后重启mysql!

Drupal China http://drupalchina.cn

已经设置max_allowed_packet = 100M了都没用,还是报这个错