dongshuan8722
dongshuan8722
2018-03-27 23:51

工匠迁移 - 种子错误

已采纳

When executing the php artisan migrate command --seed an error message is generated on the console, has anyone ever experienced this? Here is the message below:

[Illuminate\Database\QueryException]                                         
could not find driver (SQL: select * from information_schema.tables where 
table_schema = homestead and table_name = migrations)

following with

[PDOException]         
could not find driver
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • duanjiu1950 duanjiu1950 3年前

    Make sure pdo_mysql is installed.

    In ubuntu: sudo apt install php-mysql

    点赞 评论 复制链接分享