PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/UserManager.php(25): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/clientAuthentication.php(26): UserManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#3 /home/learning/public_html/index.php(21): require_once('/home/learning/...')
#4 {main}PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/RoleManager.php(22): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/clientAuthentication.php(27): RoleManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#3 /home/learning/public_html/index.php(21): require_once('/home/learning/...')
#4 {main}PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/LayoutNewsManager.php(23): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/index.php(118): LayoutNewsManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/LayoutNewsManager.php(23): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/index.php(122): LayoutNewsManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/LayoutIndexManager.php(23): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/index.php(123): LayoutIndexManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#3 {main}PDOException: SQLSTATE[HY000] [2002] Connection refused 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', 'a24502134*')
#1 /home/learning/public_html/Manager/StatisticsManager.php(20): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', 'utf8mb4')
#2 /home/learning/public_html/index.php(124): StatisticsManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'a24502134*', '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 l...', 'SELECT')
#1 /home/learning/public_html/Manager/LayoutNewsManager.php(81): Database->DbSelect('SELECT * FROM l...')
#2 /home/learning/public_html/index.php(126): LayoutNewsManager->GetLayoutNews(1, 100)
#3 {main}
thrown in /home/learning/public_html/Class/Database.php on line 45