From 50028820fe4e957de506e214a15fdbea844f43ea Mon Sep 17 00:00:00 2001 From: DongGuoChao Date: Tue, 29 Jan 2019 10:44:12 +0800 Subject: [PATCH] support emoji --- litemall-db/sql/litemall_schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litemall-db/sql/litemall_schema.sql b/litemall-db/sql/litemall_schema.sql index d75b8cb1..dae8ead5 100644 --- a/litemall-db/sql/litemall_schema.sql +++ b/litemall-db/sql/litemall_schema.sql @@ -1,6 +1,7 @@ drop database if exists litemall; drop user if exists 'litemall'@'localhost'; -create database litemall; +-- 支持emoji:需要mysql数据库参数: character_set_server=utf8mb4 +create database litemall default character set utf8mb4 collate utf8mb4_unicode_ci; use litemall; create user 'litemall'@'localhost' identified by 'litemall123456'; grant all privileges on litemall.* to 'litemall'@'localhost';