php artisan migrate throwing [PDO Exception] Could not find driver - Using Laravel

后端 未结 26 1588
眼角桃花
眼角桃花 2020-12-01 07:41

I have a bad experience while installing laravel. However, I was able to do so and move to the next level. I used generators and created my migrations. But when I type the

26条回答
  •  长情又很酷
    2020-12-01 08:06

    This worked with me:(for pgsql: use 'pgsql' instead of 'mysql')

    Step 1)

    sudo apt-get install php-mysql
    

    Step 2)

    php artisan config:clear
    

    Step 3)

    php artisan config:cache
    

    Step 4)
    Then restart your server, and generate key again and migrate it, Its Done

提交回复
热议问题