Artisan migrate could not find driver

前端 未结 11 853
情话喂你
情话喂你 2020-11-27 17:33

I am trying to install Laravel. I have installed Xampp, but when I try to setup my database using php artisan migrateI get the error:

11条回答
  •  佛祖请我去吃肉
    2020-11-27 18:08

    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.

提交回复
热议问题