Exception message: mysql_pconnect(): Too many connections
Error code: 2
-- Backtrace --
/var/www/html/teacherblog/class/database/pdb/drivers/pdbmysqldriver.class.php(97): mysql_pconnect
/var/www/html/teacherblog/class/database/db.class.php(73): pdbmysqldriver.pconnect
/var/www/html/teacherblog/class/dao/model.class.php(522): db.getdb
/var/www/html/teacherblog/class/dao/model.class.php(129): galleryresources._initializedb
/var/www/html/teacherblog/class/dao/model.class.php(186): galleryresources.execute
/var/www/html/teacherblog/class/gallery/dao/galleryresources.class.php(706): galleryresources.get
/var/www/html/teacherblog/class/action/resourceserveraction.class.php(228): galleryresources.getresourcefile
/var/www/html/teacherblog/class/controller/controller.class.php(310): resourceserveraction.perform
/var/www/html/teacherblog/index.php(50): blogcontroller.process
/var/www/html/teacherblog/resserver.php(25): include_once

Exception message: mysql_error(): supplied argument is not a valid MySQL-Link resource
Error code: 2
-- Backtrace --
/var/www/html/teacherblog/class/database/pdb/drivers/pdbmysqldriver.class.php(125): mysql_error
/var/www/html/teacherblog/class/database/db.class.php(75): pdbmysqldriver.errormsg
/var/www/html/teacherblog/class/dao/model.class.php(522): db.getdb
/var/www/html/teacherblog/class/dao/model.class.php(129): galleryresources._initializedb
/var/www/html/teacherblog/class/dao/model.class.php(186): galleryresources.execute
/var/www/html/teacherblog/class/gallery/dao/galleryresources.class.php(706): galleryresources.get
/var/www/html/teacherblog/class/action/resourceserveraction.class.php(228): galleryresources.getresourcefile
/var/www/html/teacherblog/class/controller/controller.class.php(310): resourceserveraction.perform
/var/www/html/teacherblog/index.php(50): blogcontroller.process
/var/www/html/teacherblog/resserver.php(25): include_once

Exception message: Fatal error: could not connect to the database! Error:
Error code: 0
-- Backtrace --
/var/www/html/teacherblog/class/database/db.class.php(76): throw
/var/www/html/teacherblog/class/dao/model.class.php(522): db.getdb
/var/www/html/teacherblog/class/dao/model.class.php(129): galleryresources._initializedb
/var/www/html/teacherblog/class/dao/model.class.php(186): galleryresources.execute
/var/www/html/teacherblog/class/gallery/dao/galleryresources.class.php(706): galleryresources.get
/var/www/html/teacherblog/class/action/resourceserveraction.class.php(228): galleryresources.getresourcefile
/var/www/html/teacherblog/class/controller/controller.class.php(310): resourceserveraction.perform
/var/www/html/teacherblog/index.php(50): blogcontroller.process
/var/www/html/teacherblog/resserver.php(25): include_once