Hello Yra !
The error "MySQL server has gone away" may be fixed via increasing the parameter "wait_timeout"in the config of your MySQL database.