None
None

Reputation: 9267

PDOException could not find driver

I'm getting this error when i try to migrate. Im trying to run my project on postgres on MAC OS. Any suggestion how can i do this? I uncomment this in php.ini but i nothing happend.

   extension=php_pdo_pgsql.dll
    extension=php_pgsql.dll

Upvotes: 0

Views: 1458

Answers (1)

Jaymin Panchal
Jaymin Panchal

Reputation: 2856

add this line in php.ini

extension=pdo_mysql.so

and then install the PDO by running following command:

sudo apt-get install php-mysql

EDIT

and also try to restart your computers sometimes it happens that restarting apache did not reloads the configuration

Upvotes: 1

Related Questions