• 25 Apr 2022
  • 1 Minute to read
  • Contributors
  • Dark
  • PDF


  • Dark
  • PDF


In this article we will explain how to connect a MySQL database to Preset. So let's get started!

Allowlist Preset IPs

Preset Cloud currently runs on three regions with the IPs listed below, and those need to be allowlisted so Preset can access your data.

Before starting, please take a moment to allowlist the IPs below based on the region that you're deployed in.

us-west-2 us-east-1 eu-north-1 ap-northeast-1

Define the Host and Port

Let's start by selecting + Database — have a look at Select a Database if you need help wth this step.

...then, in the Connect a database window, select the MySQL card.


In the Host field, enter the host for the database connection — this can be expressed as an IP address or as a domain.

Next, in the Port field, enter the port number for the connection. If you do not have one, then use the default port number of 3306 for MySQL.


Define Database Name and Credentials

In the Database Name field, enter the exact name of the database that you are connecting to.

In the Username and Password fields, enter the relevant credentials to connect to the database.


Define Display Name, Parameters, and SSL

In the Display Name field, enter a database nickname for display in the Preset environment.

In the Additional Parameters field, enter any additional custom parameters, as needed.

Lastly, enable the SSL switch if you wish to require SSL mode for the connection.


Make the Connection

To finalize the connection, just select Connect.

After your MySQL database is successfully connected to Preset, you will be provided with an opportunity to make any additional configurations to your database, if needed.

To learn how to do this, please visit Optional Settings.

When done, just select Finish. Great work!

Reminder: Set up Firewall Rules

Be sure to add Preset's IP addresses to your Inbound and Outbound firewall rules

Protocol Port Source
TCP 3306 Preset IPs

Was this article helpful?

What's Next