Skip to main content
Version: 3.0.0

Create a MySQL Connection

This guide shows you how to create a MySQL connection in Ascend.

Prerequisites​

  • Ascend Project
  • Ascend Workspace
  • Credentials for your MySQL database
    • Username: Username of the account used to connect to the MySQL server
    • Password: Password of the account used to connect to the MySQL server
  • Optional: If you are using an SSH tunnel, follow the steps in Setting up an SSH Tunnel.
  • Optional: If you would like to enable SSL, follow the steps in Setting up SSL.

Create a new MySQL Connection

Begin from your workspace Super Graph view. Follow these steps to create your connection:

  1. To start creating a connection, either:
    • Click the + button next to Connections in the left Build panel
    • add_connection
    • Or right-click anywhere in the Super Graph and hover over Create Connection
    • menu
  2. Name your connection `read_mysql`
  3. Select MySQL from the available options
  4. Complete the required form fields (along with any desired optional fields)
  5. form
  6. Scroll to the bottom and click Save to create your Connection

To learn more about the different options for Connections, check out our reference guide.

Example​

Use the following YAML template for your MySQL connection. Customize the highlighted placeholder values with your specific connection details:

/my_project/connections/mysql_connection.yaml
connection:
mysql:
host: <hostname>
port: 3306 # default value is 3306, can modify as needed
database: <database>
user: <username>
password: "${vaults.<your_vault>.<password>}"