QANode Logo

MySQL Node

The MySQL node allows you to execute queries and operations on a MySQL database. The interface and features are identical to the PostgreSQL node.


Overview

PropertyValue
Typemysql-query
CategoryDatabase
Color🟒 Green (#22c55e)
Inputin
Outputout

Connection

Using Saved Credentials (Recommended)

Select a credential of type MySQL in the Credential field.

Manual Configuration

FieldTypeDescription
Connection StringstringFull URI
HoststringServer address
PortnumberPort (default: 3306)
DatabasestringDatabase name
UserstringUser
PasswordstringPassword
SSLbooleanUse SSL connection

Query Modes

MySQL supports the same presets as PostgreSQL:

  • Custom SQL β€” Free SQL with {{ }} expressions directly in the query
  • SELECT β€” Visual query builder
  • EXISTS β€” Check existence
  • COUNT β€” Count records
  • ASSERT β€” Check value
  • INSERT β€” Insert records
  • UPDATE β€” Update records
  • DELETE β€” Remove records

For full details on each mode, refer to the PostgreSQL node documentation.

Custom SQL example with variable:

SELECT *
FROM users
WHERE email = '{{ variables.EMAIL_TESTE }}'
  AND active = 1;

Use quotes for text and dates. For numbers and flags, normally use the expression without quotes:

SELECT *
FROM orders
WHERE customer_id = {{ variables.CUSTOMER_ID }};

Outputs

OutputTypeDescription
rowsarrayReturned records
rowCountnumberNumber of affected/returned records

Tips

  • In Custom SQL, write the query in the SQL field and use {{ }} for dynamic data
  • Review quotes in text and date fields
  • The visual query builder automatically generates correct SQL for MySQL
  • For more details on each query mode, see the PostgreSQL documentation