Error: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

解决方法:找到my.cnf文件,在文件中加入max_allowed_packet = 100M ,重启Mysql,问题即可解决。

点赞