(新人) 安装 Laravel-admin 时,遇到 could not find driver,数据库链接正常.

(新人)安装laravel-admin时,遇到could not find driver,数据库链接正常.


(新人)安装laravel-admin时,遇到could not find driver,数据库链接正常.


请问我是什么地方配置错了?谢谢!

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 4
流浪剑客

你的环境配置应该有问题,看下 pdo_mysql 扩展有没有开启

5年前 评论
Lany (楼主) 5年前
anran 5年前

migrate 了么?要先 migrate 一次创建 migration 表

5年前 评论
Lany (楼主) 5年前

字面上看的 话 问题大概出在 config/databases 文件中 里面有 connections 看看 mysql 的 driver 怎么设置的

其中 default 的值为默认连接的数据库名字 对应着 connections 的 driver 的值

5年前 评论
Lany (楼主) 5年前

因为我使用的 vagrant 和 virtualbox, 本地没有配置环境,vagrant ssh 后 install 后就没问题了 :stuck_out_tongue_closed_eyes:

5年前 评论