0

Homestead system

PDO extension

Upon running: php artisan migrate I recieve:

[PDOException]         
could not find driver

With me being unable to run database migrations through artisan.

As far as I can see my Nginx instance has PDO enabled and supporting mysql which is what I'm using on my local machine. What's the problem?

1 Answer 1

0

It turns out I needed the PDO extension on my local machine, not the vagrant box

sudo apt-get install php5-mysql

Following that we need to adjust our .env file for Laravel, see:

https://stackoverflow.com/questions/29756194/access-denied-for-user-homesteadlocalhost-using-password-yes wdog

for a description

1
  • 1
    If this is solved, please mark it as solved by clicking the tick mark at the left so that it turns solid green. Welcome to Server Fault! Aug 6, 2018 at 18:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .