Skip to content

MySQL Table Info

Retrieves structural information for a specified MySQL table. Returns a human-readable summary along with a JSON payload that typically includes columns, data types, nullability, and other metadata. Uses provided credentials to connect and queries a backend service for the table details.
Preview

Usage

Use this node when you need to inspect the schema of a table before writing queries or building data pipelines. Commonly placed early in a workflow to validate column names, data types, and keys prior to running queries or transformations.

Inputs

FieldRequiredTypeDescriptionExample
credentials_pathTrueSTRINGPath or reference to the stored MySQL credentials to authenticate the request./configs/credentials/mysql.json
timeoutTrueINTMaximum time in seconds to wait for the operation before it times out.60
table_nameTrueSTRINGName of the MySQL table to retrieve metadata for.users
databaseTrueSTRINGMySQL database (schema) containing the table.analytics_db

Outputs

FieldTypeDescriptionExample
textSTRINGA readable summary of the table information, suitable for logs or quick inspection.Table Info: analytics_db.users - id (INT, NOT NULL) - email (VARCHAR(255), NULL) - created_at (DATETIME, NOT NULL) ...
jsonSTRINGJSON string containing the raw table metadata returned by the service (columns, types, and related attributes).{"columns": [{"name": "id", "type": "INT", "nullable": false}, {"name": "email", "type": "VARCHAR(255)", "nullable": true}]}
htmlSTRINGHTML content (if provided for this operation). For this node it is typically empty.
xlsxBYTESBinary Excel data (if provided for this operation). For this node it is typically empty.
pdfBYTESBinary PDF data (if provided for this operation). For this node it is typically empty.

Important Notes

  • Credentials required: Ensure the credentials_path points to valid MySQL credentials; the node will load and use them before making the request.
  • Database and table must exist: The specified database and table_name must be accessible by the provided user.
  • Timeouts: Operations that exceed the provided timeout will fail; increase the timeout for large or slow databases.
  • Result formats: The text and JSON outputs are the primary outputs for this node; other formats (HTML/XLSX/PDF) will generally be empty for this operation.
  • Service interaction: The node relies on a backend service endpoint for table metadata; network connectivity is required.

Troubleshooting

  • Authentication error: Verify credentials_path points to a valid file/reference and the credentials are correct.
  • Table not found: Confirm table_name is correct and exists in the specified database. Check for typos or case sensitivity.
  • Insufficient privileges: Ensure the database user has rights to read metadata for the target table.
  • Network or timeout issues: Increase the timeout input and verify network connectivity to the database service.
  • Malformed output parsing: If JSON output cannot be parsed downstream, inspect the raw json output field for error messages from the service.