Skip to content
Reeflow
Start Building

MySQL / MariaDB

Connect to MySQL and MariaDB databases, including managed services like Amazon RDS, Google Cloud SQL, and PlanetScale.

Before creating a connection, you need:

  1. A MySQL or MariaDB database that is publicly accessible from the internet
  2. A database user with read permissions on the tables you want to query

For security, create a dedicated read-only user for Reeflow rather than using an admin account. This limits the potential impact if credentials are compromised.

-- Create the user
CREATE USER 'reeflow_reader'@'%' IDENTIFIED BY 'your-secure-password';

-- Grant read access to the target database
GRANT SELECT ON your_database.* TO 'reeflow_reader'@'%';

-- Apply the new privileges
FLUSH PRIVILEGES;

When creating a MySQL / MariaDB connection in Reeflow, provide the following:

FieldDescription
HostHostname or IP address of your MySQL / MariaDB server
PortDatabase server port (default: 3306)
UsernameThe read-only user you created (e.g., reeflow_reader)
PasswordPassword for the database user
SSLEnable SSL/TLS encryption for the connection
DatabaseDefault database queries are issued against

Create a MySQL / MariaDB connection

Add a MySQL or MariaDB database as a data source in Reeflow.

Navigate to Connections in the main navigation, then click New Connection.

Enter a Name for the connection and an optional Description.

Select MySQL / MariaDB as the connection type.

Enter your database Host, Port, Username, and Password. Enable SSL for production databases.

Pick the database queries should run against from the Database dropdown. The list is populated automatically from the credentials you entered above.

Click Create Connection to save. The connection appears in your connections list.