JDBC URL Formats
To connect to different databases, you need to use different JDBC URL formats.
JDBC URL Formats:
MySQL:
jdbc:mysql://hostname:port/database_name
Oracle:
jdbc:oracle:thin:@hostname:port:database_name
PostgreSQL:
jdbc:postgresql://hostname:port/database_name
Microsoft SQL Server:
jdbc:sqlserver://hostname:port;databaseName=database_name
SQLite:
jdbc:sqlite:/path/to/database/file.db
DB2:
jdbc:db2://hostname:port/database_name
Last updated