In this article, we will discuss ERROR 2006: MySQL server has gone away ?
you can resolve this only few change. which given below
- Windows : go to XAMPP click on MySQL config and open my.ini
- Debian Linux : file is located at /etc/mysql/my.cnf
- Fedora/Centos Linux : file is located at /etc/my.cnf
Increase packet size :
max_allowed_packet = 128m