MySQL Connection
MySQL database Connection.
Examples​
- mysql_connection_basic.yaml
- mysql_connection_with_ssh_tunnel.yaml
- mysql_connection_ssl.yaml
connection:
mysql:
database: my_database
host: your-hostname
user: your-username
password: "${vaults.my_vault_name.password}"
connection:
mysql:
host: your-hostname
user: your-username
password: "${vaults.my_vault_name.password}"
database: your-database
port: 3307
ssh_tunnel: your-ssh-tunnel-name
connection:
mysql:
database: my_database
host: your-hostname
user: your-username
password: "${vaults.my_vault_name.password}"
ssl:
ca_cert: "${vaults.my_vault_name.server_certificate}"
client_cert: "${vaults.my_vault_name.client_public_key_certificate}"
client_key: "${vaults.my_vault_name.client_private_key}"
MySQLConnection​
info
MySQLConnection
is defined beneath the following ancestor nodes in the YAML structure:
Below are the properties for the MySQLConnection
. Each property links to the specific details section further down in this page.
Property | Default | Type | Required | Description |
---|---|---|---|---|
description | string | No | A brief description of what the model does. | |
metadata | No | Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources. | ||
name | string | Yes | The name of the model | |
ssh_tunnel | string | No | ||
mysql | Yes |
Property Details​
Connection​
Data source/sink Connection.
Property | Default | Type | Required | Description |
---|---|---|---|---|
connection | One of:   S3Connection   GcsConnection   AbfsConnection   LocalFileConnection   SnowflakeConnection   BigQueryConnection   MSSQLConnection   MySQLConnection   OracleConnection   PostgresConnection   HttpConnection   DuckDBConnection   SFTPConnection   DatabricksConnection | Yes | Data system Connection. |
MySQLConnectionOptions​
MySQL Connection options.
Property | Default | Type | Required | Description |
---|---|---|---|---|
host | string | Yes | MySQL host to connect to. | |
user | string | Yes | MySQL user to connect as. | |
password | string | No | MySQL password to use for the Connection. | |
database | string | Yes | MySQL database to connect to. | |
port | integer | No | MySQL port to connect to. | |
ssl | Any of: Â Â boolean | No | SSL options to use for the MySQL Connection. |
SSLOptions​
Property | Default | Type | Required | Description |
---|---|---|---|---|
ca_cert | string | Yes | Server certificate to use for the MySQL Connection. | |
client_cert | string | Yes | Client public key to use for the MySQL Connection. | |
client_key | string | Yes | Client private key to use for the MySQL Connection. |
ResourceMetadata​
Meta information of a resource. In most cases, it doesn't affect the system behavior but may be helpful to analyze Project resources.
Property | Default | Type | Required | Description |
---|---|---|---|---|
source | No | The origin or source information for the resource. | ||
source_event_uuid | string | No | UUID of the event that is associated with creation of this resource. |
ResourceLocation​
The origin or source information for the resource.
Property | Default | Type | Required | Description |
---|---|---|---|---|
path | string | Yes | Path within repository files where the resource is defined. | |
first_line_number | integer | No | First line number within path file where the resource is defined. |