Skip to main content
Version: 3.0.0

MySQL Connection

Connection to a MySQL database.

Examples

connection:
mysql:
host: your-hostname
user: your-username
password: "${secret.my_vault_name.password}"

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.

PropertyDefaultTypeRequiredDescription
namestring
NoThe name of the model
descriptionstring
NoA brief description of what the model does.
metadataResourceMetadata
NoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
ssh_tunnelstring
No
mysqlMySQLConnectionOptionsYesThe MySQL connection options.

Property Details

Connection

A connection to a data source/sink.

PropertyDefaultTypeRequiredDescription
connectionOne of:
  S3Connection
  GcsConnection
  AbfsConnection
  LocalFileConnection
  SnowflakeConnection
  BigQueryConnection
  MSSQLConnection
  MySQLConnection
  OracleConnection
  PostgresConnection
  HttpConnection
  DuckDBConnection
  CustomPythonConnection
  SynapseConnection
YesThe connection to the data system.

MySQLConnectionOptions

MySQL connection options.

PropertyDefaultTypeRequiredDescription
hoststringYesThe MySQL host to connect to.
userstringYesThe MySQL user to connect as.
passwordstringYesThe MySQL password to use for the connection.
databasestring
NoThe MySQL database to connect to.
portinteger
NoThe MySQL port to connect to.
sslAny of:
  boolean
  SSLOptions
NoThe SSL options to use for the MySQL connection.

SSLOptions

PropertyDefaultTypeRequiredDescription
ca_certstringYesThe server certificate to use for the MySQL connection.
client_certstringYesThe client public key to use for the MySQL connection.
client_keystringYesThe 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.

PropertyDefaultTypeRequiredDescription
sourceResourceLocation
NoThe origin or source information for the resource.
source_event_uuidstring
NoUUID of the event that is associated with creation of this resource.

ResourceLocation

The origin or source information for the resource.

PropertyDefaultTypeRequiredDescription
pathstringYesPath within repository files where the resource is defined.
first_line_numberinteger
NoFirst line number within path file where the resource is defined.