Skip to content
Advertisement

Artisan migrate –seed Error

When executing the php artisan migrate command –seed an error message is generated on the console, has anyone ever experienced this? Here is the message below:

[IlluminateDatabaseQueryException]                                         
could not find driver (SQL: select * from information_schema.tables where 
table_schema = homestead and table_name = migrations)

following with

[PDOException]         
could not find driver

Advertisement

Answer

Make sure pdo_mysql is installed.

In ubuntu: sudo apt install php-mysql

Advertisement