fix "MySQL server has gone away"