php - artisan 迁移——种子错误

标签 php linux laravel laravel-artisan manjaro

执行 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/

相关文章:

linux - session.serialize_handler 作为 igbinary 导致 "igbinary_unserialize_header: unsupported version"

c - 从内核运行队列中添加/删除进程

linux - Makefile 规则未在 Linux 中执行

mysql - Laravel 中的嵌套查询

设置中的 Laravel-Backpack/Settings 表字段

php - Laravel Guzzle 请求获取错误的数据库连接

php - proc_open 在 Apache2 和 CLI 中给出不同的输出

php - 如果在 URL 中请求 .php 扩展名,则重定向到 404

php - 使用 PDO 将行从一个数据库中的表移动到另一个数据库

php - 如何在ajax中传递多个#div id以实现高级搜索功能