Connection id: 2939
Current database: clcdb_final
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.5.32-log MySQL Community Server (GPL) by Remi
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 45 min 59 sec
和表信息:ENGINE = MyISAM AUTO_INCREMENT = 57431 DEFAULT CHARSET = latin1
答案 0 :(得分:1)
只需检查mySql连接器jar版本。如果你使用过时的罐子,那么这可能会发生。
答案 1 :(得分:0)
确认您已指定
"charset=utf8"
在你的连接字符串中。
如Character Sets and Collations in General中所述 MySQL可以这样做:
答案 2 :(得分:0)
验证:
"charset=utf8"
和
Collation ==> utf8 - utf8_bin