Last active
March 27, 2017 06:53
-
-
Save t-kashima/28e5924c12b66270ecc9b55479507548 to your computer and use it in GitHub Desktop.
change database encoding to utf8mb4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use [database_name]; | |
alter database [database_name] character set utf8mb4; | |
alter database [database_name] collate utf8mb4_general_ci; | |
alter table [table_name] character set utf8mb4; | |
alter table [table_name] modify [collumn name] varchar(255) character set utf8mb4 not null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment