php - symfony2. Cannot load pdo drivers -
when i'm try create db with
doctrine:database:create
there errors(mysql or postgresql):
could not create database connection named `symfony` not find driver
my parametrs.yml:
parameters: database_driver: pdo_mysql database_host: 127.0.0.1 database_port: 3306 database_name: symfony database_user: root database_password: null mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null locale: en secret: 1dffcb10ddfc2bbc4f211d773f2524557 database_path: null
when i'm trying map classes db
php app/console doctrine:generate:entities demos/blogbundle/entity/post php app/console doctrine:schema:update --force
there error:
[pdoexception] not find drive
lines uncomment in file php.ini
extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll
print_r(get_loaded_extensions()) result :
array (... mbstring [35] => exif [36] => gd [37] => gettext [38] => mysql [39] => phar [40] => pdo_mysql [41] => pdo_pgsql [42] => pgsql ... )
i found http://www.php.net/manual/en/pdo.installation.php user gerrywastaken wrote, there maybe need commands:
--with-pdo-mysql[=dir] pdo: mysql support. dir mysql base directoy if mysqlnd passed dir, mysql native native driver used [/usr/local]
i can't understand execute commands, or configure...
Comments
Post a Comment