Warning: PDO::__construct(): MySQL server has gone away in /var/www/labgood/include/database.class.php on line 31

Warning: PDO::__construct(): Error while reading greeting packet. PID=13916 in /var/www/labgood/include/database.class.php on line 31
SQLSTATE[HY000] [2006] MySQL server has gone away
Fatal error: Call to a member function prepare() on null in /var/www/labgood/include/database.class.php on line 103