在laravel中找不到驱动程序 [英] could not find driver in 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屋!