1

执行 php artisan migrate 命令时 --seed 在控制台上生成错误消息,有没有人遇到过这种情况?这是下面的消息:

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

跟随

[PDOException]         
could not find driver
4

1 回答 1

1

确保已安装 pdo_mysql。

在 ubuntu 中:sudo apt install php-mysql

于 2018-03-28T05:20:48.603 回答