Warning: mysqli::real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Mysqli/Connection.php on line 203
Dhaka Metropolitan Police
  

An error occurred

An error occurred during execution; please try again later.


Additional information:

Zend\Db\Adapter\Exception\RuntimeException

File:
/home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Mysqli/Connection.php:206
Message:
Connection error
Stack trace:
#0 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Mysqli/Mysqli.php(205): Zend\Db\Adapter\Driver\Mysqli\Connection->connect()
#1 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Adapter.php(180): Zend\Db\Adapter\Driver\Mysqli\Mysqli->createStatement('UPDATE counter ...')
#2 /home/dmpgov/public_html/module/Application/src/Application/Model/VisitorTable.php(28): Zend\Db\Adapter\Adapter->query('UPDATE counter ...')
#3 /home/dmpgov/public_html/module/Application/src/Application/Controller/IndexController.php(1980): Application\Model\VisitorTable->updateCounter()
#4 /home/dmpgov/public_html/module/Application/src/Application/Controller/IndexController.php(232): Application\Controller\IndexController->_visitor()
#5 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): Application\Controller\IndexController->indexAction()
#6 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#7 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(460): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#8 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(204): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(460): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(204): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /home/dmpgov/public_html/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(294): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /home/dmpgov/public_html/public/index.php(12): Zend\Mvc\Application->run()
#16 {main}

Previous exceptions: