Skip to content
MySQL

How to use MySQL

DevelopersCost: 1 credit per runTop 100 · #46Full guide

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

  1. 1Make sure your MySQL server accepts external connections and your firewall allows access from flooows.
  2. 2If possible, create a database user with permissions only on the tables you need.
  3. 3In flooows add a MySQL step and click "Connect".
  4. 4Fill in Host, Port (usually 3306), Username, Password and Database, then save the connection.
Connection fieldTypeRequired
HostTextYes
PortNumberYes
UsernameTextYes
PasswordSecret keyYes
DatabaseTextNo

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
FieldTypeRequired
TimezoneTextNo
TableList (from your account)Yes
ConditionTextYes
ArgumentsList of valuesNo
ColumnsList of valuesNo
Insert Row3 fields
FieldTypeRequired
TimezoneTextNo
TableList (from your account)Yes
ValuesKey / value pairsYes
Insert Multiple Rows4 fields
FieldTypeRequired
TimezoneTextNo
TableList (from your account)Yes
RowsDynamic fieldsYes
Keep Empty StringsYes / NoNo
Update Row5 fields
FieldTypeRequired
TimezoneTextNo
TableList (from your account)Yes
Search ColumnTextYes
Search ValueTextYes
ValuesKey / value pairsYes
Delete Row4 fields
FieldTypeRequired
TimezoneTextNo
TableList (from your account)Yes
Search ColumnTextYes
Search ValueTextYes
Get Tables0 fields

No fields to configure.

Run Query3 fields
FieldTypeRequired
TimezoneTextNo
QueryTextYes
ArgumentsList of valuesNo

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