GrahamMorbyDev's avatar

Php Artisan Migrate , Windows PDO Exception could not find driver

Does any one have any experience with this?

Using MAMP on windows 10 and get this error when Migrating to database on local host

0 likes
4 replies
sherwinmdev's avatar

exactly what the error says, the db driver is not found. if you're using mysql, you need to enable it in php.ini file. for sql server, you need to download and install the sqlsrv driver.

GrahamMorbyDev's avatar

the actual error is PDO Exception could not find driver ill try to install sqlsrv

GrahamMorbyDev's avatar

I have enabled it in the php.ini

;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
alirezalakha's avatar

Hey! If you have the connection with a mysql database then you need to use following statement: extenstion=php_mysql.dll

as well there should not be semicolon in front of the extension statement, since it denotes a comment in php.ini file

so similarly for every other database, just without ';' ( semicolon )

Please or to participate in this conversation.