【问题标题】:I'm trying to run the php artisan migrate command, but I'm not getting it. I'm getting this error我正在尝试运行 php artisan migrate 命令,但我没有得到它。我收到此错误
【发布时间】:2020-01-28 13:25:07
【问题描述】:

Illuminate\Database\QueryException : 找不到驱动程序(SQL: select * from information_schema.tables where table_schema = sisfosekolah and table_name = migrations and table_type = 'BASE TABLE')

【问题讨论】:

  • 请检查数据库中的所有迁移文件以及迁移文件夹。
  • 我已经检查并且只有 2 个文件迁移
  • 错误:660| // 如果在尝试运行查询时发生异常,我们将格式化错误 661| // 包含与 SQL 的绑定的消息,这将使该异常成为 662| // 对开发人员更有帮助,而不仅仅是数据库的错误。 663|捕获(异常 $e){ > 664| throw new QueryException(665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668|

标签: php laravel


【解决方案1】:
**In your php.ini configuration file simply uncomment the extension:**



  ;extension=php_pdo_mysql.dll

(You can find your php.ini file in the php folder where your stack server is installed.)

If you're on Windows make it: extension=php_pdo_mysql.dll

If you're on Linux make it: extension=pdo_mysql.so

And do a quick server restart.

【讨论】:

  • 我已经取消注释扩展;extension=pdo_mysql 我正在使用 wamp 服务器
猜你喜欢
  • 1970-01-01
  • 2021-02-16
  • 1970-01-01
  • 2023-03-13
  • 1970-01-01
  • 1970-01-01
  • 2016-03-24
  • 2018-12-05
  • 2019-09-08
相关资源
最近更新 更多