MySQL

Connect to a MySQL database

Setup

The following credentials keys are accepted:

  • host (required) -> The hostname / ip of the instance

  • user (required) -> he username to access the instance

  • database (required) -> The database name of the instance

  • schema (optional) -> The default schema to use

  • password (optional) -> The password to access the instance

  • port (optional) -> The port of the instance. Default is 3306.

Here is an example of setting a connection named MYSQL:

# URL format
export MYSQL="mysql://myuser:mypass@host.ip:3306/mydatabase?tls=skip-verify"

# YAML format
export MYSQL="{type: mysql, host: <host>, user: <user>, database: <database>, password: <password>, port: <port>}"

Last updated