问答详情
源自:-

迁移数据库报错

php artisan migrate

E:\wamp\www\log>php artisan migrate
Migration table created successfully.


  [Illuminate\Database\QueryException]
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))



  [PDOException]
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes

编码和laravel框架 里的数据库配置一样,数据库版本是5.7.14,迁移过去两张表,但是重置密码的表没有导进去,求解

提问者:橘子菌 2017-05-19 17:37

个回答

  • 橘子菌
    2017-05-21 22:39:14

    哎,问了不管事呀,用笨办法自己解决了