Skip to content

MySQL

Interact with a MySQL database from your workflow. Four node types are available for different operations. All require a MySQL connection.

MySQL Query

Execute a SELECT query on a MySQL database.

Configuration

FieldDescriptionNotes
MySQL ConnectionThe MySQL connection to useRequired. Select from your configured MySQL connections.
OperationChoose how many rows to returnGet Many (default) returns multiple rows. Get One returns only the first matching row.
TableThe table to queryRequired. Select from tables available in the connected database.
ColumnsWhich columns to include in the resultsLeave empty to return all columns.
WhereFilter conditions to narrow down resultsSee Where Conditions below.

Get Many Options

These fields appear only when Operation is set to Get Many:

FieldDescriptionNotes
Order ByColumn to sort results byOptional.
DirectionSort directionAscending (default) or Descending.
LimitMaximum number of rows to returnOptional. Must be at least 1.
OffsetNumber of rows to skipOptional. Useful for pagination.

Additional Options

FieldDescriptionNotes
Output Decimals as NumbersConvert string-encoded decimal values to numbersDisabled by default. Enable when downstream nodes need numeric values.

Output

Get Many returns a list of row objects. Get One returns a single row object, or an empty object if no match is found.


MySQL Insert

Insert data into a MySQL database table.

Configuration

FieldDescriptionNotes
MySQL ConnectionThe MySQL connection to useRequired.
TableThe table to insert intoRequired.
Column MappingMap input data to table columnsEach entry maps a table column to a value from upstream data.
On ConflictWhat to do when a duplicate key is detectedRaise Error (default), Ignore (Skip), or Update Existing.
Conflict ColumnsColumns that determine uniquenessAppears when On Conflict is Ignore or Update Existing.

Output

FieldDescription
successtrue if the insert succeeded
tableThe name of the table
inserted_dataThe inserted row data
insert_idThe auto-generated ID (if applicable)

MySQL Update

Update data in a MySQL database table.

Configuration

FieldDescriptionNotes
MySQL ConnectionThe MySQL connection to useRequired.
TableThe table to updateRequired.
Update Fields MappingMap new values to table columnsEach entry maps a column to the new value.
WHERE ConditionsFilter which rows to updateSee Where Conditions below.
Allow NULL ValuesWhether to include null or empty valuesDisabled by default. When disabled, null/empty mapped values are skipped.
Require WHERE ConditionsWhether WHERE conditions are mandatoryEnabled by default.

Output

FieldDescription
successtrue if the update succeeded
tableThe name of the table
affected_rowsNumber of rows updated
updated_dataThe values that were set

MySQL Delete

Delete data from a MySQL database table.

Configuration

FieldDescriptionNotes
MySQL ConnectionThe MySQL connection to useRequired.
TableThe table to delete fromRequired.
WHERE ConditionsFilter which rows to deleteSee Where Conditions below.
Require WHERE ConditionsWhether WHERE conditions are mandatoryEnabled by default.

Output

FieldDescription
successtrue if the delete succeeded
tableThe name of the table
affected_rowsNumber of rows deleted

Where Conditions

All MySQL nodes use the same visual condition builder. Each condition has three parts:

  • Column -- The column to filter on.
  • Operation -- The comparison operator: equals, not equals, greater than, less than, greater than or equals, less than or equals, contains, starts with, ends with, in, not in, is null, is not null, is empty, is not empty.
  • Value -- The value to compare against. Supports expressions that reference upstream node data.

Multiple conditions can be combined with AND or OR logic.

WARNING

Disabling Require WHERE Conditions on Update or Delete nodes allows the operation to affect every row in the table. Use with caution.

TIP

To sync data from an API to MySQL, connect an HTTP Request node to a MySQL Insert node. Use Column Mapping to map API response fields to your table columns, and set On Conflict to Update Existing for an upsert pattern.