Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register


1
(click on this box to dismiss)

CUBRID JDBC url

What is the CUBRID JDBC URL connection string?

link comment (0) accepted answer
asked 3 years ago
eusto
204
1 Answer
1
jdbc:cubrid:localhost:port:dbname:username:password:

Usage:

import java.sql.*;
import java.lang.*;

public class CubridStartup {
	public static void main(String[] args) {
		Connection connection = null;

		try {
			Class.forName("cubrid.jdbc.driver.CUBRIDDriver");
			// Connect to the "demodb" database
			connection = DriverManager.getConnection("jdbc:cubrid:localhost:30000:demodb:public::");
			System.out.println("Connected to demodb.");
			connection.close();
			System.out.println("Disconnected from demodb.");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

For more info see http://www.cubrid.org/cubrid_jdbc_tutorial

link comment (0)
answered 3 years ago
dba
558
tagged




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: