| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,7 +65,8 @@ public class SQLExecutor { | |||
| 65 | 65 | */ | |
| 66 | 66 | private synchronized Connection getConnection() throws Exception { | |
| 67 | 67 | Log.i(TAG, "成功加载MySQL驱动!"); | |
| 68 | - return DriverManager.getConnection(SQLConfig.MYSQL_URI, SQLConfig.MYSQL_ACCOUNT, SQLConfig.MYSQL_PASSWORD); | ||
| 68 | + return DriverManager.getConnection(SQLConfig.MYSQL_URI + "?useUnicode=true&characterEncoding=UTF-8&user=" | ||
| 69 | + + SQLConfig.MYSQL_ACCOUNT + "&password=" + SQLConfig.MYSQL_PASSWORD); | ||
| 69 | 70 | } | |
| 70 | 71 | ||
| 71 | 72 | /**保存缓存 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments