Skip to content

Commit

Permalink
增加SET NAMES utf8语句,避免通过脚本直接导入的时候数据出现中文乱码
Browse files Browse the repository at this point in the history
  • Loading branch information
arnojin authored Oct 21, 2019
1 parent 5c58c42 commit c0b6b0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sysadmin/db/db.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET NAMES utf8;

DROP DATABASE IF EXISTS sc_admin;
CREATE DATABASE sc_admin DEFAULT CHARSET utf8mb4;
USE sc_admin;
Expand Down Expand Up @@ -292,4 +294,4 @@ VALUES (101, 101, 101, now(), now(), 'system', 'system'),
(105, 102, 102, now(), now(), 'system', 'system'),
(106, 103, 101, now(), now(), 'system', 'system'),
(107, 103, 102, now(), now(), 'system', 'system'),
(108, 103, 103, now(), now(), 'system', 'system');
(108, 103, 103, now(), now(), 'system', 'system');

0 comments on commit c0b6b0f

Please sign in to comment.