Java连接数据vertica数据库
就可以连接数据库
import java.sql.*;
import java.util.Properties;
Properties myProp = new Properties();
//用于设置数据库的用户名
myProp.put("user", "dbadmin");
//用于设置数据库的密码
myProp.put("password", "Ceshi123");
//Set streamingBatchInsert to True to enable streaming mode for batch inserts.
//myProp.put("streamingBatchInsert", "True");
//l连接数据库,连接
Connection conn;
try {
//设置连接信息,这里包括IP,端口,数据库名称
conn = DriverManager.getConnection("jdbc:vertica://172.19.1.135:5433/DB_vertica", myProp);
相关下载链接:
//download.csdn.net/download/itlianwei/10741722?utm_source=bbsseo