Artisan migrate could not find driver

In your php.ini configuration file simply uncomment the extension:

;extension=php_pdo_mysql.dll

(You can find your php.ini file in the php folder where your stack server is installed.)

If you’re on Windows make it: extension=php_pdo_mysql.dll

If you’re on Linux make it: extension=pdo_mysql.so

And do a quick server restart.

If this isn’t working for you, you may need to install pdo_mysql extension into your php library.

Leave a Comment