ソースを参照

support emoji

DongGuoChao 7 年 前
コミット
50028820fe
1 ファイル変更2 行追加1 行削除
  1. 2 1
      litemall-db/sql/litemall_schema.sql

+ 2 - 1
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';