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_nameOracle:
jdbc:oracle:thin:@hostname:port:database_namePostgreSQL:
jdbc:postgresql://hostname:port/database_nameMicrosoft SQL Server:
jdbc:sqlserver://hostname:port;databaseName=database_nameSQLite:
jdbc:sqlite:/path/to/database/file.dbDB2:
jdbc:db2://hostname:port/database_name
Last updated