connector
TiDB
MySQL-compatible distributed SQL database.
Connection fields
| Field | Required | Description |
|---|---|---|
host | Yes | Hostname or IP address of the TiDB cluster's SQL endpoint. |
port | No | Defaults to 3306. |
user | Yes | Username to authenticate with. |
password | No | Not enforced by the connector, but almost every real deployment requires one — leave it blank only against a server configured to allow passwordless auth. |
db | Yes | Database name to connect to. |
TiDB speaks the MySQL wire protocol, so it runs on the same connector code as MySQL/MariaDB — only the stored type name differs.
Example configuration
{
"host": "tidb-cluster.internal.example.com",
"port": 4000,
"user": "arcodash_reader",
"password": "••••••••",
"db": "analytics"
}Caveats
- TiDB's default SQL port is 4000, not MySQL's 3306 — the connector's own default is still 3306, so set port explicitly for a standard TiDB deployment.