PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/learning/public_html/Class/Database.php:87
Stack trace:
#0 /home/learning/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/learning/public_html/Manager/RoleManager.php(22): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/learning/public_html/clientAuthentication.php(27): RoleManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#3 /home/learning/public_html/userTestList.php(3): require_once('/home/learning/...')
#4 {main}PDOException: SQLSTATE[08004] [1040] Too many connections in /home/learning/public_html/Class/Database.php:87
Stack trace:
#0 /home/learning/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/learning/public_html/Manager/PageManager.php(21): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/learning/public_html/userTestList.php(115): PageManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/learning/public_html/Class/Database.php:87
Stack trace:
#0 /home/learning/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/learning/public_html/Manager/QuestionManager.php(25): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/learning/public_html/userTestList.php(119): QuestionManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[08004] [1040] Too many connections in /home/learning/public_html/Class/Database.php:87
Stack trace:
#0 /home/learning/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/learning/public_html/Manager/UserManager.php(25): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/learning/public_html/userTestList.php(120): UserManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#3 {main}
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/learning/public_html/Class/Database.php:45
Stack trace:
#0 /home/learning/public_html/Class/Database.php(170): Database->RunSql('SELECT * FROM p...', 'SELECT')
#1 /home/learning/public_html/Manager/PageManager.php(148): Database->DbSelect('SELECT * FROM p...')
#2 /home/learning/public_html/userTestList.php(126): PageManager->GetPageObjectById('56')
#3 {main}
thrown in /home/learning/public_html/Class/Database.php on line 45