We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6051796 commit 167d1d5Copy full SHA for 167d1d5
1 file changed
APIJSON-Java-Server/APIJSON-Eclipse/src/main/java/zuo/biao/apijson/server/sql/SQLExecutor.java
@@ -65,7 +65,8 @@ public class SQLExecutor {
65
*/
66
private synchronized Connection getConnection() throws Exception {
67
Log.i(TAG, "成功加载MySQL驱动!");
68
- return DriverManager.getConnection(SQLConfig.MYSQL_URI, SQLConfig.MYSQL_ACCOUNT, SQLConfig.MYSQL_PASSWORD);
+ return DriverManager.getConnection(SQLConfig.MYSQL_URI + "?useUnicode=true&characterEncoding=UTF-8&user="
69
+ + SQLConfig.MYSQL_ACCOUNT + "&password=" + SQLConfig.MYSQL_PASSWORD);
70
}
71
72
/**保存缓存
0 commit comments