Connecting using the DriverManager
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
One way to connect to an Amazon Redshift database is through the JDBC
DriverManager using the DriverManager.getConnection() method.
As the following example shows, this method specifies a string containing a connection
URL.
Connection conn = DriverManager.getConnection ("jdbc:datadirect:redshift://MyServer:10000;User=test;Password=secret;DatabaseName=MyDB");