执行 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
最佳答案
确保安装了 pdo_mysql。
在 ubuntu 中:sudo apt install php-mysql
关于php - artisan 迁移——种子错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49524070/