SelectDB
Updated at:
Property definition
Data source type:
selectdbSupported configuration mode (
ConnectionPropertiesMode): Connection string mode (UrlMode)
Connection string mode
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
address | Array | Yes | The address. Accepts a single host and port pair. | [{"host": "127.0.0.1", "port": 3306}] |
loadAddress | String | Yes | The FE endpoint. Accepts one or more host and port pairs. | [{"host": "127.0.0.2", "port": 8031}] |
database | String | Yes | The name of the database. | dbName |
username | String | Yes | The username. | xxxxx |
password | String | Yes | The password. | xxxxx |
properties | JSON Object | No | The properties of the driver. | {"useSSL": "false"} |
envType | String | Yes | The data source environment. Valid values: Dev (development environment), Prod (production environment). | Dev |
Configuration examples
Connection string mode
{
"envType": "Prod",
"address": [
{
"host": "127.0.0.1",
"port": "3306"
}
],
"loadAddress":[
{
"host": "127.0.0.2",
"port": "8031"
}
],
"database": "my_database",
"username": "my_username",
"password": "my_password",
"properties": {
"socketTimeout": "2000"
}
}Is this page helpful?