im working with symfony and when i type in console this:
php app/console doctrine:schema:create
i have the next errors
[Doctrine\DBAL\Exception\DriverException]
An exception occured in driver: could not find driver
[Doctrine\DBAL\Driver\PDOException]
could not find driver
[PDOException]
could not find driver
I've been following this link in order to sort it out
PDOException “could not find driver” in php
this is what i get when i run php -m
root@asus-K53SD:/opt/lampp/htdocs/symfonycurso# php -m
root@asus-K53SD:/opt/lampp/htdocs/symfonycurso# php -m [PHP Modules] calendar Core ctype date dom exif fileinfo filter ftp gettext hash iconv json libxml openssl pcntl pcre PDO pdo_sqlite Phar posix readline Reflection session shmop SimpleXML sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib Zend Modules Zend OPcache
i uncommented this and restart the server
extension=php_pdo_pgsql.dll
this is my parameter.yml
Added database_driver : pdo_mysql and password removed (before was null)
# This file is auto-generated during the composer install parameters: database_driver : pdo_mysql database_host: 127.0.0.1 database_port: database_name: blog database_user: root database_password: mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: mailer_password: secret: ThisTokenIsNotSoSecretChangeIt
anyone know how can i fix this errors?? can be the problem that im working on PHP7
NOTE: Using lampp on linux
pdo_mysql
, so there's no need to loadpdo_pgsql
(this is PostgreSQL)... loadpdo_mysql
in php.ini and you're set. - ccKepNOTE: Using lampp on linux
, why would you add.dll
files to your extension list in php.ini on a linux device? Also: Ifphpinfo()
actually saysPDO
andpdo_mysql
are loaded, what's the new error message from symfony? - ccKep