Help Center/ MapReduce Service/ Developer Guide (LTS)/ Doris Development Guide (Security Mode)/ Doris Application Development/ Doris JDBC API Invoking Sample Program/ Creating a Doris Connection
Updated on 2026-06-29 GMT+08:00
Creating a Doris Connection
The following code snippets are in the createConnection method of the JDBCExample class.
USER and PASSWD are the user name and password used for security authentication during connection creation.
Class.forName(JDBC_DRIVER); String dbUrl = String.format(DB_URL_PATTERN, HOST, PORT); connection = DriverManager.getConnection(dbUrl, USER, PASSWD);
Parent topic: Doris JDBC API Invoking Sample Program
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot