Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to fix MySql: index column size too large (Laravel migrate)

//Laravel located in config/database.php
//replace this one in mysql
    'charset' => 'utf8mb4',
    'collation' => 'utf8mb4_unicode_ci',
            
//to this one
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #fix #index #column #size #large
ADD COMMENT
Topic
Name
7+4 =