Skip to main content

MySQL

Overview

This connector provides a connection to a MySQL or MariaDB database.

Requirements

Before creating the connector, you will need the following information available for the MySQL server you are connecting to.

  • hostname or IP address
  • port
  • username
  • password
  • database name

Creating

To add an instance of the MySQL connector, you can use the Web UI or the CLI.

$ sand connectors create mysql --name myDB --hostname mysql01 \
--password password123 --username user123 --port 5432 \
--database production
✅ Connector created successfully!
Connector ID: mod_01jhnq79hwfppbnkm8pkndkr28

Usage

To use this module, you first must initialize the connector in a step:

mysql = sandgarden.connectors['myDB']