这段代码,在Java项目中是可以连接数据库,但在Android中,新建连接失败:
com.mysql.jdbc.exception.jdbc4.CommmunicationsException:Communications link failure
Last packet sent to the server was 0 ms age
用的是这个外部库:
...全文
3163打赏收藏
同样的代码,在java可以运行,但在Android不可以运行
这段代码,在Java项目中是可以连接数据库,但在Android中,新建连接失败: com.mysql.jdbc.exception.jdbc4.CommmunicationsException:Communications link failure Last packet sent to the server was 0 ms age 用的是这个外部库: