Laradock: Cannot execute php artisan migrate

Created on 23 Feb 2017  路  3Comments  路  Source: laradock/laradock

When I execute: _php artisan migrate_
it always gives me this Exception:

[Illuminate\Database\QueryException]
could not find driver (SQL: select * from information_schema.tables where table_schema = mydb and table_name = migrations)

[PDOException]
could not find driver

Could anyone tell me how to fix this?

Need Help Possible Bug

Most helpful comment

All 3 comments

It's like no one as the answer for this question, they keep saying to install php5-mysql which comes with the PDO extension.. but nothing happens after installing it. There are so many different ways i have tried to action this problem, but nothing works.

(Windows) Check the database.php file ensure 'default' => env('DB_CONNECTION', 'mysql'), is properly done for me the problem was I was using 'default' => env('DB_CONNECTION', 'pgsql'), when using a MySQL database. Changed pgsql to sql and I was able to proceed.

Was this page helpful?
0 / 5 - 0 ratings