MySQL - create database DB utf8mb4

GBK

CREATE DATABASE `DB_NAME` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;

UTF-8

CREATE DATABASE `DB_NAME` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

UTF8MB4

create database DB_NAME default character set utf8mb4 collate utf8mb4_unicode_ci;
上一篇:MySQL - mysqldump 下一篇:MySQL - 常用SQL汇总