mysql utf8mb4

 

create database sina default character set utf8mb4 collate utf8mb4_unicode_ci;

 

==or== 

 

my.cnf一般在etc/mysql/my.cnf位置。找到后请在以下三部分里添加如下内容: 
[client] 
default-character-set = utf8mb4 
[mysql] 
default-character-set = utf8mb4 
[mysqld] 
character-set-client-handshake = FALSE 
character-set-server = utf8mb4 
collation-server = utf8mb4_unicode_ci 
init_connect=’SET NAMES utf8mb4’

posted @ 2018-07-25 10:38  zqiushi  阅读(130)  评论(0编辑  收藏  举报