douxian3170
douxian3170
2018-03-26 16:17

迁移时无法找到驱动程序

I wanna make a migration by php artisan migrate but I get an error:

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

My env file settings:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douluogu8713 douluogu8713 3年前

    You need to install php-mysql driver.

    点赞 评论 复制链接分享

为你推荐