Artisan migrate could not find driver

前端 未结 11 834
情话喂你
情话喂你 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条回答
  •  Happy的楠姐
    2020-11-27 17:56

    We have solved the same error by following the below steps.

    linux command for this type of error occurred then, first of all, check your php.ini file

    If your php.ini file exists then in configuration file simply uncomment the extension:
    
    ;extension=php_pdo_mysql.dll 
    
    Else follow below steps
    
    step1:php -v
    
    step2: Install php mysql extension
    
    php 7.0 sudo apt-get install php7.0-mysql
    
    php 7.1 sudo apt-get install php7.1-mysql
    
    php 7.2 sudo apt-get install php7.2-mysql
    
    php 7.3 sudo apt-get install php7.3-mysql
    
    step3: service apache2 restart
    
    step4: php artisan migrate
    

提交回复
热议问题