PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 Stack trace: #0 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'internaldb_user...', 'Pricerite-inter...', Array) #1 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #4 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('', NULL) #5 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1497): Zend_Db_Adapter_Abstract->quoteInto('website_id IN (...', '', NULL, NULL) #6 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('website_id IN (...', '', NULL) #7 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where('website_id IN (...', '', NULL, true) #8 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Select.php(120): Zend_Db_Select->where('website_id IN (...', '', NULL) #9 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Model/ResourceModel/Reward/Rate.php(42): Magento\Framework\DB\Select->where('website_id IN (...') #10 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Model/Reward/Rate.php(187): Magento\Reward\Model\ResourceModel\Reward\Rate->fetch(Object(Magento\Reward\Model\Reward\Rate), 0, '1', 1) #11 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Observer/CheckRates.php(69): Magento\Reward\Model\Reward\Rate->fetch(0, '1', 1) #12 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\Reward\Observer\CheckRates->execute(Object(Magento\Framework\Event\Observer)) #13 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Reward\Observer\CheckRates), Object(Magento\Framework\Event\Observer)) #14 /var/www/html/app.pricerite.com.hk/vendor/magento/module-staging/Model/Event/Manager.php(97): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #15 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Staging/Model/Event/Manager/Proxy.php(95): Magento\Staging\Model\Event\Manager->dispatch('customer_sessio...', Array) #16 /var/www/html/app.pricerite.com.hk/vendor/magento/module-customer/Model/Session.php(181): Magento\Staging\Model\Event\Manager\Proxy->dispatch('customer_sessio...', Array) #17 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Customer/Model/Session/Interceptor.php(14): Magento\Customer\Model\Session->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Customer\Model\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), Object(Magento\Customer\Model\Config\Share\Proxy), Object(Magento\Framework\Url\Helper\Data), Object(Magento\Customer\Model\Url\Proxy), Object(Magento\Customer\Model\ResourceModel\Customer\Proxy), Object(Magento\Customer\Model\CustomerFactory), Object(Magento\Framework\UrlFactory), Object(Magento\Framework\Session\Generic\Interceptor), Object(Magento\Staging\Model\Event\Manager\Proxy), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Customer\Api\CustomerRepositoryInterface\Proxy), Object(Magento\Customer\Model\GroupManagement), Object(Magento\Framework\App\Response\Http\Interceptor)) #18 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): Magento\Customer\Model\Session\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Customer\Model\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), Object(Magento\Customer\Model\Config\Share\Proxy), Object(Magento\Framework\Url\Helper\Data), Object(Magento\Customer\Model\Url\Proxy), Object(Magento\Customer\Model\ResourceModel\Customer\Proxy), Object(Magento\Customer\Model\CustomerFactory), Object(Magento\Framework\UrlFactory), Object(Magento\Framework\Session\Generic\Interceptor), Object(Magento\Staging\Model\Event\Manager\Proxy), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Customer\Api\CustomerRepositoryInterface\Proxy), Object(Magento\Customer\Model\GroupManagement), Object(Magento\Framework\App\Response\Http\Interceptor)) #19 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Custome...', Array) #20 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...') #21 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Custome...') #22 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Checkou...') #23 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Checkou...') #24 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Persist...') #25 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Persist...') #26 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Persist...') #27 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/PluginList/PluginList.php(250): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Persist...') #28 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(119): Magento\Framework\Interception\PluginList\PluginList->getPlugin('Magento\\Framewo...', 'persistent_page...') #29 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #30 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(39): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #31 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Response/Http.php(109): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #32 /var/www/html/app.pricerite.com.hk/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http->sendVary() #33 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #34 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #35 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(26): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #36 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Http.php(206): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #37 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Http.php(177): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #38 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #39 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #40 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #41 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #42 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #43 /var/www/html/app.pricerite.com.hk/pub/hk/zh/index.php(42): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #44 {main} Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: #0 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(410): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() #3 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('', NULL) #4 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(1497): Zend_Db_Adapter_Abstract->quoteInto('website_id IN (...', '', NULL, NULL) #5 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Select.php(1031): Magento\Framework\DB\Adapter\Pdo\Mysql->quoteInto('website_id IN (...', '', NULL) #6 /var/www/html/app.pricerite.com.hk/vendor/magento/zendframework1/library/Zend/Db/Select.php(496): Zend_Db_Select->_where('website_id IN (...', '', NULL, true) #7 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/DB/Select.php(120): Zend_Db_Select->where('website_id IN (...', '', NULL) #8 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Model/ResourceModel/Reward/Rate.php(42): Magento\Framework\DB\Select->where('website_id IN (...') #9 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Model/Reward/Rate.php(187): Magento\Reward\Model\ResourceModel\Reward\Rate->fetch(Object(Magento\Reward\Model\Reward\Rate), 0, '1', 1) #10 /var/www/html/app.pricerite.com.hk/vendor/magento/module-reward/Observer/CheckRates.php(69): Magento\Reward\Model\Reward\Rate->fetch(0, '1', 1) #11 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\Reward\Observer\CheckRates->execute(Object(Magento\Framework\Event\Observer)) #12 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Reward\Observer\CheckRates), Object(Magento\Framework\Event\Observer)) #13 /var/www/html/app.pricerite.com.hk/vendor/magento/module-staging/Model/Event/Manager.php(97): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #14 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Staging/Model/Event/Manager/Proxy.php(95): Magento\Staging\Model\Event\Manager->dispatch('customer_sessio...', Array) #15 /var/www/html/app.pricerite.com.hk/vendor/magento/module-customer/Model/Session.php(181): Magento\Staging\Model\Event\Manager\Proxy->dispatch('customer_sessio...', Array) #16 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Customer/Model/Session/Interceptor.php(14): Magento\Customer\Model\Session->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Customer\Model\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), Object(Magento\Customer\Model\Config\Share\Proxy), Object(Magento\Framework\Url\Helper\Data), Object(Magento\Customer\Model\Url\Proxy), Object(Magento\Customer\Model\ResourceModel\Customer\Proxy), Object(Magento\Customer\Model\CustomerFactory), Object(Magento\Framework\UrlFactory), Object(Magento\Framework\Session\Generic\Interceptor), Object(Magento\Staging\Model\Event\Manager\Proxy), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Customer\Api\CustomerRepositoryInterface\Proxy), Object(Magento\Customer\Model\GroupManagement), Object(Magento\Framework\App\Response\Http\Interceptor)) #17 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): Magento\Customer\Model\Session\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Customer\Model\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), Object(Magento\Customer\Model\Config\Share\Proxy), Object(Magento\Framework\Url\Helper\Data), Object(Magento\Customer\Model\Url\Proxy), Object(Magento\Customer\Model\ResourceModel\Customer\Proxy), Object(Magento\Customer\Model\CustomerFactory), Object(Magento\Framework\UrlFactory), Object(Magento\Framework\Session\Generic\Interceptor), Object(Magento\Staging\Model\Event\Manager\Proxy), Object(Magento\Framework\App\Http\Context\Interceptor), Object(Magento\Customer\Api\CustomerRepositoryInterface\Proxy), Object(Magento\Customer\Model\GroupManagement), Object(Magento\Framework\App\Response\Http\Interceptor)) #18 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Custome...', Array) #19 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...') #20 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Custome...') #21 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Checkou...') #22 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Checkou...') #23 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Persist...') #24 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Persist...') #25 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Persist...') #26 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/PluginList/PluginList.php(250): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Persist...') #27 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(119): Magento\Framework\Interception\PluginList\PluginList->getPlugin('Magento\\Framewo...', 'persistent_page...') #28 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Context\Interceptor->Magento\Framework\Interception\{closure}() #29 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Http/Context/Interceptor.php(39): Magento\Framework\App\Http\Context\Interceptor->___callPlugins('getVaryString', Array, Array) #30 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Response/Http.php(109): Magento\Framework\App\Http\Context\Interceptor->getVaryString() #31 /var/www/html/app.pricerite.com.hk/vendor/magento/module-page-cache/Model/App/Response/HttpPlugin.php(25): Magento\Framework\App\Response\Http->sendVary() #32 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(121): Magento\PageCache\Model\App\Response\HttpPlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor)) #33 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}() #34 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(26): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array) #35 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Http.php(206): Magento\Framework\App\Response\Http\Interceptor->sendResponse() #36 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Http.php(177): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #37 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #38 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('catchException', Array) #39 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #40 /var/www/html/app.pricerite.com.hk/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #41 /var/www/html/app.pricerite.com.hk/vendor/magento/framework/App/Bootstrap.php(267): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(Zend_Db_Adapter_Exception)) #42 /var/www/html/app.pricerite.com.hk/pub/hk/zh/index.php(42): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #43 {main}