MySQL
MySQL connector allows querying MySQL/MariaDB databases.
Config Schema
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | yes | constant: mysql |
| host | string | yes | Database host address |
| database | string | yes | Database name |
| user | string | yes | Username |
| password | string | yes | Password |
| port | integer | yes | TCP port (default 3306) |
| tlsConfig | string | no | TLS configuration name from MySQL server |
| conn_string | string | no | Direct connection string (DSN format) |
Config example:
type: mysqlhost: localhostdatabase: mydbuser: rootpassword: secretport: 3306tlsConfig: "" # Optional TLS configuration name from MySQL serverOr as alternative with direct connection string:
type: mysqlconn_string: root:secret@tcp(localhost:3306)/mydb