SQLSTATE[HY000] [2002] Connection refused
#0 [internal function]: PDO->__construct('mysql:host=127....', 'cg2019', 'pR2aK6vCi0xhsXR...', Array)
#1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array)
#2 /var/www/html/cg2019/app/config/services.php(38): Phalcon\Db\Adapter\Pdo->__construct(Array)
#3 [internal function]: Closure->{closure}()
#4 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))
#5 [internal function]: Phalcon\Di->get('db', NULL)
#6 [internal function]: Phalcon\Di->getShared('db')
#7 [internal function]: Phalcon\Mvc\Model\Manager->_getConnection(Object(Cg2019\Models\DbMed), NULL)
#8 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Cg2019\Models\DbMed))
#9 [internal function]: Phalcon\Mvc\Model->getReadConnection()
#10 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(Cg2019\Models\DbMed), Object(Phalcon\Di\FactoryDefault))
#11 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(Cg2019\Models\DbMed), 'cg2019\\models\\d...', 'db_meds', 'cg2019')
#12 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaData(Object(Cg2019\Models\DbMed))
#13 [internal function]: Phalcon\Mvc\Model\MetaData->hasAttribute(Object(Cg2019\Models\DbMed), 'med_name')
#14 [internal function]: Phalcon\Mvc\Model\Query->_getQualified(Array)
#15 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array, true)
#16 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array)
#17 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect()
#18 [internal function]: Phalcon\Mvc\Model\Query->parse()
#19 [internal function]: Phalcon\Mvc\Model\Query->execute()
#20 /var/www/html/cg2019/app/common/models/DbMed.php(135): Phalcon\Mvc\Model::findFirst(Array)
#21 /var/www/html/cg2019/app/common/models/DbMedManager.php(257): Cg2019\Models\DbMed::findFirst(Array)
#22 /var/www/html/cg2019/app/modules/frontend/controllers/MedController.php(31): Cg2019\Models\DbMedManager::getMedByMedName('zolpidem')
#23 [internal function]: Cg2019\Modules\Frontend\Controllers\MedController->showAction('zolpidem')
#24 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Cg2019\Modules\Frontend\Controllers\MedController), 'showAction', Array)
#25 [internal function]: Phalcon\Dispatcher->dispatch()
#26 /var/www/html/cg2019/app/bootstrap_web.php(63): Phalcon\Mvc\Application->handle()
#27 /var/www/html/cg2019/public/index.php(2): require('/var/www/html/c...')
#28 {main}