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
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.
the actual error is PDO Exception could not find driver ill try to install sqlsrv
I have enabled it in the php.ini
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
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 sign in or create an account to participate in this conversation.