First, the Chinese appear garbled data into MySql
Solution are:
1. New Database selection
create database 'GG' CHARACTER SET 'utf8 ' COLLATE 'utf8_general_ci ';
2. When construction of the table:
CREATE TABLE `TableA` (`ID` varchar(40) NOT NULL default ' ', `UserID` varchar(40) NOT NULL default ' ', ) ENGINE=InnoDB DEFAULT CHARSET=utf8; // 一定后面有utf-8
3
?useUnicode=true&;characterEncoding=UTF-8