ERROR 2006 (HY000:) MySQL server has gone away.
Generally, when we are dealing with large column’s queries and values, MySQL raises this kind of error.
To resolve this error, we should look into this parameter of MySQL Server.
Whenever we require to process big binary string like BLOB column, we should increase the value of this variable.
The solution of this error is to increase the value of max_allowed_packet parameter.
The default value is 16MB.
You can add below line into my.cnf file:
After this change, You must restart the MySQL service.