在laravel 5.8.3中找不到SQL驱动程序

时间:2019-03-21 04:54:13

标签: php pdo laravel-5.8

Illuminate \ Database \ QueryException:找不到驱动程序(SQL:从information_schema.tables中选择*,其中table_schema =应用程序,而table_name =迁移)

在G:\ Wamps \ wamp64 \ www \ laravel_practices \ lsapp \ vendor \ laravel \ framework \ src \ Illuminate \ Database \ Connection.php:664     660 | //如果在尝试运行查询时发生异常,我们将格式化错误     661 | //包含SQL绑定的消息,这将使此异常成为     662 | //对开发人员有更多帮助,而不仅仅是数据库的错误。             c

catch (Exception $e) {
  >             throw new QueryException(
                     $query, $this->prepareBindings($bindings), $e
                );
             }

异常跟踪:

PDOException::(“找不到驱动程序”)           G:\ Wamps \ wamp64 \ www \ laravel_practices \ lsapp \ vendor \ laravel \ framework \ src \ Illuminate \ Database \ Connectors \ Connector.php:70

PDO :: __ construct(“ mysql:host = 127.0.0.1; port = 3306; dbname = app”,“ root”,“”,[])           G:\ Wamps \ wamp64 \ www \ laravel_practices \ lsapp \ vendor \ laravel \ framework \ src \ Illuminate \ Database \ Connectors \ Connector.php:70

0 个答案:

没有答案