原文地址:http://blog.sina.com.cn/s/blog_6797a6700100sq9u.html
CREATE DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATEutf8_general_ci;
CREATE DATABASE 的语法:
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
[create_specification [, create_specification] ...]
create_specification:
[DEFAULT] CHARACTER SET charset_name
| [DEFAULT] COLLATE collation_name
更改数据库的字符编码
ALTER DATABASEdb_nameDEFAULTCHARACTERSETutf8COLLATEutf8_
general_ci