PDOException: SQLSTATE[HY000] [2002] No route to host in /home/idesign/public_html/Class/Database.php:87
Stack trace:
#0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/idesign/public_html/Manager/QuestionManager.php(25): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/idesign/public_html/userTestList.php(119): QuestionManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[HY000] [2002] No route to host in /home/idesign/public_html/Class/Database.php:87
Stack trace:
#0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du')
#1 /home/idesign/public_html/Manager/UserManager.php(25): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4')
#2 /home/idesign/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/idesign/public_html/Class/Database.php:45
Stack trace:
#0 /home/idesign/public_html/Class/Database.php(170): Database->RunSql('SELECT a.*, (SE...', 'SELECT')
#1 /home/idesign/public_html/Manager/QuestionManager.php(989): Database->DbSelect('SELECT a.*, (SE...')
#2 /home/idesign/public_html/userTestList.php(202): QuestionManager->GetTestResult('1635', NULL)
#3 {main}
thrown in /home/idesign/public_html/Class/Database.php on line 45