schema在MySQL中等同于database的概念,create schema在MySQL5.0.2之后就是create database,打开console
create schema ccd200_temp character set utf8 collate utf8_general_ci;-- 设置支持中文插入SET collation_connection = 'utf8_general_ci';-- 数据库级别ALTER DATABASE ccd200_temp CHARACTER SET utf8 COLLATE utf8_general_ci;-- 表级别ALTER TABLE ccd200_temp.role CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
以上为个人经验,希望能给大家一个参考,也希望大家多多支持一聚教程网。