MySQL Server has Gone Away in Drupal 7

后端 未结 3 1636
梦毁少年i
梦毁少年i 2021-01-11 12:27

In my form field type, i edit the file menu these error will appear,

Fatal error: Uncaught exception \'PDOException\' with message \'SQLSTATE[HY00

3条回答
  •  滥情空心
    2021-01-11 12:46

    This may be because of max_allowed_packet

    Change in the my.ini/my.cnf file. Include the single line under [mysqld] in your file

    max_allowed_packet=500M
    

    now restart the MySQL service once you are done. You can see it's curent value in mysql like this:

    SHOW VARIABLES LIKE 'max_allowed_packet'
    

    You can read about it here http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html

提交回复
热议问题