1,创建数据库时字符集是utf8,创建表字符集是utf8,字段的字符集也是utf8
2,连接地址也有utf8
3,最后,数据库的配置还得是utf8才行(真心不习惯这种配置)
create database brkcbase character set utf8 collate utf8_general_ci;
<span style="color:#990000;">[mysqld]
ndbcluster
# Options for data node process:ndbcluster
ndb-connectstring=192.168.0.3
# location of management server
character-set-server=utf8
[mysql]
default-character-set=utf8</span>
jdbc\:mysql\://192.168.0.3\:3306/base?useUnicode=true&characterEncoding=utf8