MySQL Server has Gone Away in Drupal 7

后端 未结 3 1544
梦毁少年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:42

    I had a similar problem. mysql would crash while drupal8 was going through install process. restarting mysql would eliminate the "mysql has gone away ..." error but drupal install would never finish. the following combination of mysql and apache configs provided a stable digitalocean droplet for me: https://www.digitalocean.com/community/questions/mysql-server-keeps-stopping-unexpectedly?answer=26016

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-11 12:58

    This is for Linux Users.In terminal,
    Step 1:

    locate my.cnf

    And you copy the Path

    Step 2:

    sudo gedit "Paste the path"
    

    Step 4: Changed "max_allowed_packet" from "1m" to "32m" and saved my.cnf

     sudo "path" restart
    

    (or) Do Normal System Restart

    0 讨论(0)
提交回复
热议问题