繁体   English   中英

Laravel 6:找不到驱动程序

[英]Laravel 6: could not find driver

在 web 上,数据库与应用程序连接。 但是,在命令行上会出现以下错误:

Illuminate\Database\QueryException  : could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
at C:\wamp64\www\hrmnxt\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669

             // If an exception occurs when attempting to run a query, we'll format the error
             // message to include the bindings with SQL, which will make this exception a
             // lot more helpful to the developer instead of just the database's errors.
             catch (Exception $e) {
                 throw new QueryException(
                     $query, $this->prepareBindings($bindings), $e
                 );
             }


  Exception trace:

  1   PDOException::("could not find driver")
      C:\wamp64\www\hrmnxt\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70

  2   PDO::__construct("pgsql:host=localhost;dbname=hrmnxt;port=5432;sslmode=prefer", "postgres", "secret", [])
      C:\wamp64\www\hrmnxt\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70

Laravel:6

Postgresql 9.6

我从来没有遇到过这样的问题,但也许你应该首先开始检查你是否有所有的要求( laravel安装)

PDO PHP 扩展

此链接可以帮助您调试: Laravel: PDOException: 找不到驱动程序

如果它不起作用,告诉我,我会帮助你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM