我已经启用了视图模块并在我进入drupal 7中的结构>视图时得到了这个
处理异常时抛出的其他未捕获异常。 原始
PDOException:SQLSTATE [HY000]:常规错误:2006 MySQL服务器已经消失:DELETE FROM {cache_form} WHERE(cid =:db_condition_placeholder_0); cache_clear_all()中的数组([:db_condition_placeholder_0] => form_form-MKcd7j8VJkLHaG7-JGW-vREo_XeUngdnLcqlKOn-02o)(/home/tennis/public_html/includes/cache.inc的第170行)。 附加
PDOException:SQLSTATE [HY000]:常规错误:2006 MySQL服务器已经消失:INSERT INTO {watchdog}(uid,类型,消息,变量,严重性,链接,位置,引用,主机名,时间戳)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);数组([:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] =>%type:!消息在%函数中(%文件的行%行)。[:db_insert_placeholder_3] => a :6:{s:5:“%type”; s:12:“PDOException”; s:8:“!message”; s:240:“SQLSTATE [HY000]:一般错误:2006 MySQL服务器已经消失: DELETE FROM {cache_form} WHERE(cid =:db_condition_placeholder_0); Array([:db_condition_placeholder_0] =& gt; form_form-MKcd7j8VJkLHaG7-JGW-vREo_XeUngdnLcqlKOn-02o)“; s:9:”%function“; s:17:” cache_clear_all() “; S:5:” %文件 “; S:43:”/家/网球/的public_html /包含/ cache.inc “; S:5:” %线“; I:170; S:14: “severity_level”; i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://192.168.1.66/~tennis/admin/structure/views [:db_insert_placeholder_7] => http://192.168.1.66/~tennis/user/1 [: db_insert_placeholder_8] => 192.168.1.172 [:db_insert_placeholder_9] => 1309366098)在dblog_watchdog()中(/home/tennis/public_html/modules/dblog/dblog.module的第155行)。
我的问题可能是什么?
答案 0 :(得分:7)
以下是有关该错误的一些信息:http://dev.mysql.com/doc/refman/5.1/en/gone-away.html以及Drupal.org上的类似问题:http://drupal.org/node/984112
关于此错误的另一篇有用的帖子:http://madhavvyas.blogspot.com/
似乎问题在于max_allowed_packet
在MySQL的配置中。
从Drupal问题,另一个用户提供了一些可能对您有帮助的步骤(此用户使用XAMPP但步骤类似):
如何解决此问题
- 转到xampp \ mysql \ bin
- 打开my.ini
- 将“max_allowed_packet”从“1m”更改为“16m”(或更大)
- 保存my.ini现在通过XAMPP控制面板重启MySql。