Common database drivers, driver classes and URLs

Source: Internet
Author: User

Oracle Database :

Driver package Name: Ojdbc14.jar

name of the driver class: Oracle.jdbc.driver.OracleDriver

JDBC URL : Jdbc:oracle:thin: @dbip:p ort:databasename

Description: The driver package name may change

JDBC URL the meanings of each part are as follows:

Dbip for the database server IP address, if it is locally writable: localhost or 127.0.0.1 .

Port for the database listening port, you need to look at the installation of the configuration, the default is 1521 .

DatabaseName for the database SID , usually the name of the global database.

SQL Server Database

Driver package name:msbase.jar Mssqlserver.jar Msutil.jar

name of the driver class: Com.microsoft.jdbc.sqlserver.SQLServerDriver

JDBC URL : Jdbc:microsoft:sqlserver://dbip:port;databasename=databasename

Description: The driver package name may change

JDBC URL the meanings of each part are as follows:

Dbip for the database server IP address, if it is locally writable: localhost or 127.0.0.1 .

Port for the database listening port, you need to look at the installation of the configuration, the default is 1433 .

DatabaseName – The name of the database.

MySQL Database

Driver package Name: Mysql-connector-java-3.1.11-bin.jar

name of the driver class: Com.mysql.jdbc.Driver

JDBC URL : Jdbc:mysql://dbip:port/databasename

Description: The driver package name may change

JDBC URL The meanings of each part are as follows:

Dbip for the database server IP address, if it is locally writable: localhost or 127.0.0.1 .

Port for the database listening port, you need to look at the installation of the configuration, the default is 3306 .

DatabaseName – The name of the database.

Common database drivers, driver classes and URLs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.