php - php artisan 迁移错误 - 找不到驱动程序
问题描述
vadir@DESKTOP-6504PNT MINGW64 /c/xampp/htdocs/lsapp
$ php artisan migrate
Illuminate\Database\QueryException 在 C:\xampp\htdocs\lsapp\vendor\laravel\framework\ 找不到驱动程序(SQL: select * from information_schema.tables where table_schema = lsapp and table_name = migrations and table_type = 'BASE TABLE') src\Illuminate\Database\Connection.php:671 667▕ // 如果尝试运行查询时发生异常,我们将格式化错误 668▕ // 消息以包含与 SQL 的绑定,这将使此异常成为669▕ // 对开发人员更有帮助,而不仅仅是数据库的错误。670▕ catch (Exception $e) { ➜ 671▕ throw new QueryException( 672▕ $query, $this->prepareBindings($bindings), $e 673▕ ); 674▕ } 675▕ 1 C:\xampp\htdocs\lsapp\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:
解决方案
推荐阅读
- php - 检查请求是直接用户发起的请求还是浏览器发起的请求
- javascript - 如何将事件侦听器添加到组件并在用户单击窗口中的其他任何位置时将其删除?
- javascript - 如何在使用 jsPDF 保存/下载之前预览 pdf 文件?
- javascript - 值 === 表达式和表达式 === 值之间的区别?
- docker - 在使用 jenkins 管道在 docker 容器中运行时,我们如何为 npm 设置 StrictHostKeyChecking=no?
- ios - 无法在路径领域打开领域
- sql - T-SQL :: 从 JOIN 中消除双精度
- mysql - 使用带有空值的 MySQL 修复我的表
- azure-devops - Azure Devops Publish Artifact 在目录中生成 .cs、.bat 等(不可部署的文件)
- performance - 从 jenkins 到 tomcat 9 的 ~150MB 战争文件的部署时间