What it is for
The MySQL component connects flooows to your database to find, insert, update or delete rows and run SQL queries. Use it to store leads or orders, sync data with a CRM or build reports from your tables.
MySQL has no triggers: it is used as an action inside flows started by other triggers, such as a webhook or a schedule.
Set up the connection
Authentication type: Custom credentials
- 1Make sure your MySQL server accepts external connections and your firewall allows access from flooows.
- 2If possible, create a database user with permissions only on the tables you need.
- 3In flooows add a MySQL step and click "Connect".
- 4Fill in Host, Port (usually 3306), Username, Password and Database, then save the connection.
| Connection field | Type | Required |
|---|---|---|
| Host | Text | Yes |
| Port | Number | Yes |
| Username | Text | Yes |
| Password | Secret key | Yes |
| Database | Text | No |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Insert Row: pick the Table and fill Values with data mapped from earlier steps; for several rows at once use Insert Multiple Rows.
- Find Rows: set the Table and a Condition like email = ?, passing values in Arguments to avoid SQL injection.
- Update Row and Delete Row: set Search Column and Search Value to target the exact row.
- Run Query: write free SQL with ? placeholders and their Arguments for complex queries.
- Adjust Timezone when working with date and time columns.
Tips
- •Always use Arguments instead of concatenating values into the query.
- •Get Tables helps confirm the connection sees the expected tables.
- •Limit returned columns with Columns for lighter responses.
Actions (7)
Operations available as flow steps. Expand each one to see its fields.
Find Rows5 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Table | List (from your account) | Yes |
| Condition | Text | Yes |
| Arguments | List of values | No |
| Columns | List of values | No |
Insert Row3 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Table | List (from your account) | Yes |
| Values | Key / value pairs | Yes |
Insert Multiple Rows4 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Table | List (from your account) | Yes |
| Rows | Dynamic fields | Yes |
| Keep Empty Strings | Yes / No | No |
Update Row5 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Table | List (from your account) | Yes |
| Search Column | Text | Yes |
| Search Value | Text | Yes |
| Values | Key / value pairs | Yes |
Delete Row4 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Table | List (from your account) | Yes |
| Search Column | Text | Yes |
| Search Value | Text | Yes |
Get Tables0 fields
No fields to configure.
Run Query3 fields
| Field | Type | Required |
|---|---|---|
| Timezone | Text | No |
| Query | Text | Yes |
| Arguments | List of values | No |
Common errors
Timeout or connection refused.
Check Host and Port and that the firewall allows inbound connections.
Access denied for user.
Verify username, password and permissions on the given database.
SQL syntax error.
Test the query in your MySQL client and check that the number of ? matches Arguments.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
