Use MySQL to query rows, insert or modify records, execute raw SQL, and inspect databases, tables, columns, keys, and indexes.
Query returns rows and a row count. Insert, update, and delete operations accept the data or WHERE clause documented below. Raw SQL can also change schema; use a database account with the permissions the workflow needs.
Connection setup
In Integrations, add a connection with the host, port, database, username, password, and transport-security settings. Sim proves the connection with SELECT 1 before saving it encrypted, then reads it on the server for each run; the block, the workflow, and agents never see the password. Reconnect the connection from Integrations when its credentials change. The runtime must be able to reach the database host.
- Preferred encrypts without verifying the server certificate.
- Required encrypts and verifies the certificate chain against the runtime's trust store, but does not check the host name, like MySQL's
VERIFY_CA. - Both refuse a server that offers no TLS rather than connect unencrypted, so Sim's Preferred behaves like MySQL's
REQUIRED, not itsPREFERRED. - Disabled never encrypts. Use it only on a network whose confidentiality you control.
Workflows built before saved connections keep their inline connection fields and run unchanged.
Use the block
Query, insert, update, delete, and execute raw SQL.
Actions
MySQL Query
Execute SELECT query on MySQL database
MySQL Insert
Insert new record into MySQL database
MySQL Update
Update existing records in MySQL database
MySQL Delete
Delete records from MySQL database
MySQL Execute
Execute raw SQL query on MySQL database
MySQL Introspect
Introspect MySQL database schema to retrieve table structures, columns, and relationships