proto.mysql · version 2.6 · Action
Query, insert, update and delete rows in a MySQL or MariaDB database.
Port Kind Label Required Max connections
input 0 main
output 0 main
Slot Accepted kinds Required
mySqlproto.mysqlyes
Name Type Default Required Shown when Description
operationoptions "insert"One of executeQuery, insert, update, upsert, select, deleteTable.
tableresource_locator yes operation = insert, update, upsert, select, deleteTable Values from lookup mysql.tables.
querycode yes operation = executeQuery SQL to run. Use $1, $2, … for values listed under Query Parameters.
columnsfixed_collection operation = insert, update, upsert How item fields map to table columns: map automatically by name, or set each column. Values from lookup mysql.columns.
columns.mappingModeoptions "defineBelow"Mapping . One of autoMapInputData, defineBelow.
columns.valuejson Values .
columns.matchingColumnsmulti_options Columns to Match On . Values from lookup mysql.columns.
returnAllboolean falseoperation = select Return All Rows .
limitnumber 50operation = select
deleteCommandoptions "truncate"operation = deleteTable Command . One of truncate, delete, drop.
wherefixed_collection operation = select, deleteTable Conditions .
where.columnoptions Values from lookup mysql.columns.
where.conditionoptions Operator . One of equal, !=, LIKE, >, <, >=, <=, IS NULL, IS NOT NULL.
where.valuestring
combineConditionsoptions "AND"operation = select, deleteTable Combine Conditions . One of AND, OR.
sortfixed_collection operation = select
sort.columnoptions Values from lookup mysql.columns.
sort.directionoptions One of ASC, DESC.
optionscollection
options.queryBatchingoptions "single"Query Batching . One of single, independently, transaction.
options.queryReplacementstring Query Parameters . Comma-separated values, or an expression returning an array, used for $1, $2, …
options.outputColumnsmulti_options Output Columns . Values from lookup mysql.columns.
options.connectionTimeoutnumber 30Connection Timeout (Seconds) .
options.largeNumbersOutputoptions "text"Large Numbers . One of text, numbers.
options.replaceEmptyStringsboolean falseWrite Empty Strings as NULL .
options.skipOnConflictboolean falseSkip Rows That Conflict .
options.treatQueryParametersInSingleQuotesAsTextboolean falseReplace Parameters Inside Quotes .
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating .
Source type Version range Status Fixtures
n8n-nodes-base.mySql1unverified
n8n-nodes-base.mySql>=2 <3unverified