Database general error: 2006 MySQL server has gone away

If by any chance we encountered this problem
We will copy the following code to the following file:


max_allowed_packet = 8024M

innodb_buffer_pool_size = 256M

innodb_additional_mem_pool_size = 10M
innodb_lock_wait_timeout = 180

save the file
and restart the MariaDB using the following command.

systemctl restart mariadb

and that is all


Leave a Comment

Your email address will not be published. Required fields are marked *