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

后端 未结 26 1554
眼角桃花
眼角桃花 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 07:44

    I had this problem on debian. The issue was, I was using the dotdeb repository for more recent PHP packages. For some reason, it updated the php cli to 7.0, while the web php binary remained php 5.6. I used this answer to link the php command line binary to the 5.6 version, like so:

    $ sudo ln -sfn /usr/bin/php5 /etc/alternatives/php
    

提交回复
热议问题