Skip to main content

MySQL Connection

MySQL database Connection.

Examples​

connection:
mysql:
database: my_database
host: your-hostname
user: your-username
password: "${vaults.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
descriptionstring
NoA brief description of what the model does.
metadataNoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
namestringYesThe name of the model
ssh_tunnelstring
No
mysqlYes

Property Details​

Connection​

Data source/sink Connection.

PropertyDefaultTypeRequiredDescription
connectionOne of:
  S3Connection
  GcsConnection
  AbfsConnection
  LocalFileConnection
  SnowflakeConnection
  BigQueryConnection
  MSSQLConnection
  MySQLConnection
  OracleConnection
  PostgresConnection
  HttpConnection
  DuckDBConnection
  SFTPConnection
  DatabricksConnection
YesData system Connection.

MySQLConnectionOptions​

MySQL Connection options.

PropertyDefaultTypeRequiredDescription
hoststringYesMySQL host to connect to.
userstringYesMySQL user to connect as.
passwordstring
NoMySQL password to use for the Connection.
databasestringYesMySQL database to connect to.
portinteger
NoMySQL port to connect to.
sslAny of:
  boolean
NoSSL options to use for the MySQL Connection.

SSLOptions​

PropertyDefaultTypeRequiredDescription
ca_certstringYesServer certificate to use for the MySQL Connection.
client_certstringYesClient public key to use for the MySQL Connection.
client_keystringYesClient 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
sourceNoThe 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.