如何在Laravel项目中迁移Auth?

时间:2018-02-08 13:28:59

标签: laravel laravel-5 artisan-migrate

我是laravel的新手并尝试使用$ php artisan migrate此命令迁移我的表。但我得到以下错误。

$ php artisan migrate

In Connection.php line 664:

  could not find driver (SQL: select * from information_schema.tables where table_schema = nseitbackoffice and table_name = migrations)


In Connector.php line 67:

  could not find driver

请帮帮我......

1 个答案:

答案 0 :(得分:0)

首先,检查config/database.php中的默认驱动程序。

如果设置为postgres,则需要安装并启用正确的扩展程序:pdo_pgsql.sopgsql.so。如果设置为mysql,则类似。

对于debian系统,您可以通过命令行安装:

// change to match your php version
sudo apt-get -y install php7.1-mysql

sudo apt-get -y install php7.1-pgsql
相关问题