- 创建utf8编码的数据库
create database mydatabase character set utf8mb4 collate utf8mb4_unicode_ci;
或者
create database mydatabase character set utf8 collate utf8_general_ci;
create database mydatabase character set utf8mb4 collate utf8mb4_unicode_ci;
或者
create database mydatabase character set utf8 collate utf8_general_ci;