Help Center/
GaussDB/
Developer Guide(Distributed_8.x)/
Application Development Guide/
Development Based on JDBC/
Loading a Driver
Updated on 2024-08-20 GMT+08:00
Loading a Driver
Load the database driver before creating a database connection.
You can load the driver in the following ways:
- Implicit loading at any position before a connection is created in the code: Class.forName("com.huawei.gaussdb.jdbc.Driver")
- Parameter transfer during JVM startup: java -Djdbc.drivers=com.huawei.gaussdb.jdbc.Driver jdbctest
jdbctest is the name of a test application.
Parent topic: Development Based on JDBC
Feedback
Was this page helpful?
Provide feedbackThank 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