Common database driver names and connection strings for using with JAVA


MySQL Server

Class.forName(“com.mysql.jdbc.Driver”);

connection string –> “jdbc:mysql://serverIP:3306/databasename”

Microsoft SQL Server 

Class.forName(“com.microsoft.jdbc.sqlserver.SQLServerDriver”);

connection string –> “jdbc:microsoft:sqlserver://serverIP:1433;DatabaseName=DBnamewillbehere”

Oracle DB

Class.forName(“oracle.jdbc.driver.OracleDriver”);

connection string –> “jdbc:oracle:thin:@serverIP:1521:ORCL”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s