douxian3170
douxian3170
2018-03-26 16:17
浏览 261
已采纳

迁移时无法找到驱动程序

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=

图片转代码服务由CSDN问答提供 功能建议

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

 在Connection.php第664行:
 
找不到驱动程序(SQL:select * from information_schema.tables where table_schema = laravel and table_name = migrations)
 
In连接器 .php第67行:
找不到驱动程序
   
 
 

我的环境文件设置:

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

1条回答 默认 最新

  • douluogu8713
    douluogu8713 2018-06-26 21:55
    已采纳

    You need to install php-mysql driver.

    点赞 评论

相关推荐