Aldi Thanks For Google and Stackoverflow.

Mengatasi Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

14 sec read

pemograman min

Mengatasi Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Pertama jalankan :

php artisan db:wipe 

ubah data pada connection MYSQL  lokasi file di /config/database.php
dan ubah data charset dan collation seperti dibawah

'charset' => 'utf8',

'collation' => 'utf8_general_ci',

dan save lalu jalankan perintah :

php artisan migrate

It’s Done! Migration Tables will be created successfully.

Aldi Thanks For Google and Stackoverflow.

Leave a Reply

Your email address will not be published. Required fields are marked *

×

Thank you for visiting this blog, don’t forget to comment here

 

ALDI
Aldi@index.my.id