迁移时无法找到驱动程序

问题描述 投票:0回答:1

我想通过php artisan migrate进行迁移,但是我收到一个错误:

In Connection.php line 664:

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

In Connector.php line 67:
  could not find driver

我的环境文件设置:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
php mysql laravel migration
1个回答
1
投票

你需要安装php-mysql驱动程序。

© www.soinside.com 2019 - 2024. All rights reserved.