BaseException: Database Connection Failed

Additional information:

  • PDO error: SQLSTATE[HY000] [2002] Connection refused
  • DSN: mysql:host=localhost;dbname=abhishrisdesignerwear;charset=utf8
/var/www/html/abhishrisdesignerwear/lib/Frontend.php:74
FileObject NameStack TraceHelp
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/DB.php:107 front_dbDB->exception("Database Connection Failed")
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/App/CLI.php:561 front_dbDB->connect(Array(4))
/var/www/html/abhishrisdesignerwear/lib/Frontend.php:74 frontFrontend->dbConnect()
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/AbstractView.php:181 frontFrontend->defaultTemplate()
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/App/Web.php:81 frontFrontend->initializeTemplate()
/var/www/html/abhishrisdesignerwear/lib/Frontend.php:21 frontFrontend->init()
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/App/CLI.php:213 frontFrontend->init()
/var/www/html/abhishrisdesignerwear/vendor/xepan/atk4/lib/App/Web.php:44 frontFrontend->__construct("front", Array(0))
/var/www/html/abhishrisdesignerwear/index.php:11 frontFrontend->__construct("front")