Fatal error: Uncaught XF\Db\Exception: Connection refused in /var/www/html/src/XF/Db/Mysqli/Adapter.php:165
Stack trace:
#0 /var/www/html/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 /var/www/html/src/XF/Db/AbstractAdapter.php(62): XF\Db\Mysqli\Adapter->getConnection()
#2 /var/www/html/src/XF/Db/AbstractAdapter.php(85): XF\Db\AbstractAdapter->connect()
#3 /var/www/html/src/XF/Db/AbstractAdapter.php(152): XF\Db\AbstractAdapter->query('...', 1)
#4 /var/www/html/src/XF/PermissionCache.php(34): XF\Db\AbstractAdapter->fetchOne('...', 1)
#5 /var/www/html/src/XF/PermissionSet.php(35): XF\PermissionCache->getGlobalPerms(1)
#6 /var/www/html/src/XF/Entity/User.php(1218): XF\PermissionSet->hasGlobalPermission('...', '...')
#7 /var/www/html/src/addons/Siropu/AdsManager/XF/Entity/User.php(9): XF\Entity\User->hasPermission('...', '...')
#8 /var/www/html/src/addons/Siropu/AdsManager/Template/Ad.php(38): Siropu\AdsManager\XF\Entity\User->canViewAdsSiropuAdsManager()
#9 /var/www/html/src/addons/Siropu/AdsManager/Listener.php(62): Siropu\AdsManager\Template\Ad->__construct(Object(XF\Pub\App), Object(XF\Mvc\Reply\Error))
#10 /var/www/html/src/XF/Extension.php(69): Siropu\AdsManager\Listener::templaterGlobalData(Object(XF\Pub\App), Array, Object(XF\Mvc\Reply\Error))
#11 /var/www/html/src/XF/App.php(2990): XF\Extension->fire('...', Array, NULL)
#12 /var/www/html/src/XF/App.php(2208): XF\App->fire('...', Array)
#13 /var/www/html/src/XF/App.php(2077): XF\App->getGlobalTemplateData(Object(XF\Mvc\Reply\Error))
#14 /var/www/html/src/XF/Pub/App.php(451): XF\App->preRender(Object(XF\Mvc\Reply\Error), '...')
#15 /var/www/html/src/XF/Mvc/Dispatcher.php(397): XF\Pub\App->preRender(Object(XF\Mvc\Reply\Error), '...')
#16 /var/www/html/src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), '...')
#17 /var/www/html/src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#18 /var/www/html/src/XF.php(524): XF\App->run()
#19 /var/www/html/index.php(20): XF::runApp('...')
#20 {main}
thrown in /var/www/html/src/XF/Db/Mysqli/Adapter.php on line 165