【问题标题】:Php artisan migrate commandphp artisan 迁移命令
【发布时间】:2018-06-07 15:27:05
【问题描述】:

我尝试运行php artisan migrate,但出现错误:

在 Connection.php 第 664 行:找不到驱动程序(SQL:select * from information_schema.tables 其中 table_schema = 宅基地和 table_name = migration) 在 Connector.php 第 67 行:找不到 司机。

【问题讨论】:

  • 能否请您与我们分享您的 .env 文件配置,以便我们检查它是否与它有关?(这可能是您收到此错误的原因)
  • DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=okeada DB_USERNAME=root DB_PASSWORD=null。这是我的 .env 文件中的数据库凭据
  • 您使用哪个 PHP 版本?
  • 我使用的是 PHP 7.2.0
  • 你确定Apache使用的PHP和命令行链接的PHP没有冲突吗?

标签: php laravel artisan-migrate


【解决方案1】:

你应该运行这个命令,那是因为缓存

composer dumpautoload

【讨论】:

    猜你喜欢
    • 2017-09-27
    • 2019-01-28
    • 2020-05-21
    • 2020-08-16
    • 2019-06-30
    • 2020-01-18
    • 1970-01-01
    • 1970-01-01
    • 2020-06-20
    相关资源
    最近更新 更多