V
V
Vanik Khachatryan2018-06-24 08:59:12
PHP
Vanik Khachatryan, 2018-06-24 08:59:12

Why doesn't Phalcon see the PDO driver?

Departure:

could not find driver
#0 [internal function]: PDO->__construct('mysql:host=loca...', 'root', 'тут пароль', Array)
#1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array)
#2 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/Services.php(65): 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(Chat), NULL)
#8 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Chat))
#9 [internal function]: Phalcon\Mvc\Model->getReadConnection()
#10 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(Chat), Object(Phalcon\Di\FactoryDefault))
#11 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(Chat), 'chat-chat', 'chat', '')
#12 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaData(Object(Chat))
#13 [internal function]: Phalcon\Mvc\Model\MetaData->hasAttribute(Object(Chat), 'id')
#14 [internal function]: Phalcon\Mvc\Model\Query->_getQualified(Array)
#15 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array)
#16 [internal function]: Phalcon\Mvc\Model\Query->_getOrderClause(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/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/controllers/ControllerBase.php(16): Phalcon\Mvc\Model::find(Array)
#21 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/app/controllers/IndexController.php(7): ControllerBase->initialize()
#22 [internal function]: IndexController->initialize()
#23 [internal function]: Phalcon\Dispatcher->dispatch()
#24 /var/www/domains/ovz1.vanixachatryan.zmy3z.vps.myjino.ru/public/index.php(22): Phalcon\Mvc\Application->handle(NULL)
#25 {main}

List of installed modules:
  • php71-php-pdo-7.1.19-1.el7.remi.x86_64
  • php71-php-json-7.1.19-1.el7.remi.x86_64
  • php71-php-xml-7.1.19-1.el7.remi.x86_64
  • php71-php-phalcon3-3.4.0-1.el7.remi.x86_64
  • php-common-7.1.19-1.el7.remi.x86_64
  • php-mysqlnd-7.1.19-1.el7.remi.x86_64
  • php71-runtime-1.0-1.el7.remi.x86_64
  • php71-php-common-7.1.19-1.el7.remi.x86_64
  • php71-php-process-7.1.19-1.el7.remi.x86_64
  • php71-php-pear-1.10.5-5.el7.remi.noarch
  • php71-php-mbstring-7.1.19-1.el7.remi.x86_64
  • php-json-7.1.19-1.el7.remi.x86_64
  • php71-php-cli-7.1.19-1.el7.remi.x86_64
  • php71-1.0-1.el7.remi.x86_64
  • php71-php-fpm-7.1.19-1.el7.remi.x86_64

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-06-12
@AaAAxzz

Probably because you also need to include php_pdo_mysql ? Actually the driver for php_pdo.

PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface and provides access from PHP to MySQL databases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question