Saturday, 24 August 2013

PDOException - could not find driver - Unable to update the database scheme by php

PDOException - could not find driver - Unable to update the database
scheme by php

I am trying to update the schema of mysql database by doctorine
php app/console doctrine:schema:update --force
it shows
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/php/5.3.10/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll'
-
dlopen(/usr/local/Cellar/php/5.3.10/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll,
9): image not found in Unknown on line 0
[PDOException]
could not find driver
it looks like extension is not available.
but according to my phpinfo();
pdo_mysql is enabled.
pdo_mysql
PDO Driver for MySQL enabled
Client API version mysqlnd 5.0.10 - 20111026 - $Id:
e707c415db32080b3752b232487a435ee0372157 $
Directive Local Value Master Value
pdo_mysql.default_socket /tmp/mysql.sock /tmp/mysql.sock
Is there any other point to check for me?
I also tried comment or uncomment this line in php.ini
;extension=php_pdo_mysql.dll
thanks a lot.

No comments:

Post a Comment