DB Connection error:SQLSTATE[HY000] [2002] Connection refused
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/thenajafgarh/public_html/system/classes/database.php:21
Stack trace:
#0 /home/thenajafgarh/public_html/application/models/welcomeModel.php(52): database->Query('SELECT * FROM `...')
#1 /home/thenajafgarh/public_html/application/controllers/welcome.php(10): welcomeModel->getCategoriesForReg()
#2 /home/thenajafgarh/public_html/system/classes/rout.php(38): welcome->index('uploads', '1625386612-img_...')
#3 /home/thenajafgarh/public_html/system/init.php(6): rout->__construct()
#4 /home/thenajafgarh/public_html/public/index.php(4): include('/home/thenajafg...')
#5 {main}
thrown in /home/thenajafgarh/public_html/system/classes/database.php on line 21