Laravel 5.4 upgrade, converting to utf4mb from utf8

后端 未结 2 1223
说谎
说谎 2021-01-06 21:52

I\'m busy upgrading one of my sites to Laravel 5.4 from 5.3. I noticed when going through the current Github repository that the default character set and collation has been

2条回答
  •  伪装坚强ぢ
    2021-01-06 22:24

    The database charset and collation is the default for newly created tables. The table settings are the defaults for columns.

    Do this for each table:

    ALTER TABLE table_name CONVERT TO utf8mb4;
    

提交回复
热议问题