在laravel中找不到驱动程序 [英] could not find driver in laravel

查看:146
本文介绍了在laravel中找不到驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行php artisan migrate命令时,它会输出

As I run php artisan migrate command it output

在Connection.php行664中:
找不到驱动程序(SQL:从information_schema.tables中选择* 其中table_schema =员工,table_name =迁移)
在PDOConnection.php第47行中: 在PDOConnection.php第43行中找不到驱动程序: 找不到驱动程序

In Connection.php line 664:
could not find driver (SQL: select * from information_schema.tables where t able_schema = employee and table_name = migrations)
In PDOConnection.php line 47: could not find driver In PDOConnection.php line 43: could not find driver

我也为mysql,pgsql,sqlite启用了pdo 即时通讯使用ubuntu 16和PHP版本7.2.8和laravel 5.5

and also i have pdo enabled for mysql, pgsql, sqlite im using ubuntu 16 and PHP Version 7.2.8 and laravel 5.5

推荐答案

使用php -m命令检查是否已安装mysql, pgsql, sqlite模块.

Use php -m command to check whether mysql, pgsql, sqlite modules are installed.

如果未列出,请使用以下命令进行安装.

If not listed then use following command to install.

apt-get install php7.2-mysql php7.2-pgsql php7.2-sqlite

这篇关于在laravel中找不到驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆