提交 d9705c08 编写于 作者: Z zyyang

change

上级 ec85a24c
......@@ -40,10 +40,10 @@ public class JDBCDemo {
private void init() {
// get connection
try {
String url = "jdbc:TAOS://" + host + ":6030/";
String url = "jdbc:TAOS://" + host + ":6030/?user=root&password=taosdata";
if (driverType.equals("restful")) {
Class.forName("com.taosdata.jdbc.rs.RestfulDriver");
url = "jdbc:TAOS-RS://" + host + ":6041/";
url = "jdbc:TAOS-RS://" + host + ":6041/?user=root&password=taosdata";
} else {
Class.forName("com.taosdata.jdbc.TSDBDriver");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册