Lumen 5.6 Migrate Error Specified key was too long max key length is 767 bytes

前端 未结 6 1415
生来不讨喜
生来不讨喜 2021-02-14 16:45

I use Lumen 5.6 and mysql. when i type \"php artisan migrate\" following error occur:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 17:30

    you just need one more step

    go to app.php on bootstrap folder and uncomomment or modif this line

    // $app->register(App\Providers\AppServiceProvider::class);
    

    to this code

    $app->register(App\Providers\AppServiceProvider::class);
    

    have a good day

提交回复
热议问题