Database URLs parameters
This document provides a comprehensive explanation of JDBC connection parameters for SQL Server and MySQL databases. In addition to defining each parameter, it also outlines alternative values, and their meanings. This expanded overview helps you make informed decisions when configuring secure and reliable database connections.
SQL server JDBC URL
Format:
Parameter breakdown and possible values
| Parameter | Description | Possible values | Recommended | Notes |
|---|---|---|---|---|
| <hostname> | Specifies the DNS name or IP address of the SQL server host.
| Any valid DNS or IP | N/A | Identifies SQL server instance. |
| <port> | Defines the port number where SQL Server listens.
| Default: 1433; custom ports allowed | N/A | Change only if SQL Server uses non-standard port. |
| <database name> | Name of target schema/database, for example, adeptia_backend. | Any valid DB name | N/A | Must exist on the server. |
| encrypt | Enables TLS encryption | true, false | true | Setting it to true ensures that data transmitted between the application and SQL Server is encrypted using TLS. Azure SQL requires this. |
| trustServerCertificate | Verifies the server certificate | true, false | false |
|
| authentication | Authentication method |
| Depends on environment |
|
MySQL server JDBC URL
Format:
Parameter breakdown and possible values
| Parameter | Description | Possible Values | Recommended | Notes |
|---|---|---|---|---|
| <hostname> | Specifies the DNS name or IP address of the MySQL server host.
| Any valid DNS or IP | N/A | Identifies the MySQL server instance. |
| <port> | Defines the port number where MySQL Server listens. | Default: 3306 | N/A | |
| <database name> | Name of target schema/database, for example, adeptia_backend. | Any valid database name | N/A | Must exist on the server. |
| sslMode | SSL mode that determines how SSL/TLS encryption and server certificate validation will be handled during database connections. |
| VERIFY_IDENTITY |
|
| fallbackToSystemKeyStore | Controls whether the connector should use system‑level trust stores if custom SSL configuration is missing. | true, false | false | false: Tells the driver not to use the system key store (like OS-level CA certificates). Instead, it directly uses the JVM’s built-in truststore (cacerts) to validate the certificate. true: The system first attempts to locate or load a truststore automatically. If it cannot find one, it tries to fall back to the system’s default truststore (cacerts) on its own. |