change
This commit is contained in:
parent
ec85a24cea
commit
d9705c08ba
|
@ -40,10 +40,10 @@ public class JDBCDemo {
|
||||||
private void init() {
|
private void init() {
|
||||||
// get connection
|
// get connection
|
||||||
try {
|
try {
|
||||||
String url = "jdbc:TAOS://" + host + ":6030/";
|
String url = "jdbc:TAOS://" + host + ":6030/?user=root&password=taosdata";
|
||||||
if (driverType.equals("restful")) {
|
if (driverType.equals("restful")) {
|
||||||
Class.forName("com.taosdata.jdbc.rs.RestfulDriver");
|
Class.forName("com.taosdata.jdbc.rs.RestfulDriver");
|
||||||
url = "jdbc:TAOS-RS://" + host + ":6041/";
|
url = "jdbc:TAOS-RS://" + host + ":6041/?user=root&password=taosdata";
|
||||||
} else {
|
} else {
|
||||||
Class.forName("com.taosdata.jdbc.TSDBDriver");
|
Class.forName("com.taosdata.jdbc.TSDBDriver");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue