Skip to main content

Overview

MySQL is a widely used open-source relational database. Connect it to Civic to let your AI agent run SQL queries against your MySQL database, with configurable support for read-only or read-write operations.

Add to Civic

Connect MySQL at nexus.civic.com

Available Tools (1)

ToolDescription
mysql_queryExecute SQL queries against the MySQL database. SELECT is always enabled; INSERT, UPDATE, DELETE, and DDL are enabled based on security configuration

Guardrails

In addition to the 14 universal guardrails, this server has 16 server-specific guardrails across 2 operations.
GuardrailOperationTimingDescription
Block Dynamic SQL Constructionmysql_queryRequestPrevents queries using CONCAT, CHAR functions, hex literals, DECODE, UNHEX
Block Function Executionmysql_queryRequestPrevents execution of stored procedures and functions with side effects
Block Query Stackingmysql_queryRequestPrevents multiple queries in a single request by blocking semicolons
Block SQL Commentsmysql_queryRequestPrevents queries containing SQL comments (—, /* */, or #)
Block System Tables Accessmysql_queryRequestPrevents access to MySQL system catalogs (mysql.*, information_schema)
Block Write Operationsmysql_queryRequestPrevents all data modification (INSERT, UPDATE, DELETE, etc.) and DDL commands
Enforce Basic SQL Character Setmysql_queryRequestRestricts queries to alphanumeric plus basic SQL characters
Enforce Custom Character Setmysql_queryRequestRestricts queries to a user-defined character set
Limit JOIN Complexitymysql_queryRequestLimits the number of JOINs allowed in a query
Protect Sensitive Columnsmysql_queryRequestBlocks queries that reference specified column names
Protect Tables (Anti-Aliasing)mysql_queryRequestBlocks access to specified tables regardless of aliasing or obfuscation
Query Length Limitmysql_queryRequestLimits SQL query length to prevent resource exhaustion
Restrict SELECT * Usagemysql_queryRequestControls use of SELECT * wildcards
Result Row Limitmysql_queryResponseLimits the number of rows returned
Block Table Schema Accessread_resourceRequestPrevents access to schema details of specified tables
Filter Table Listingsread_resourceResponseFilters specified tables from table listings
Configure guardrails via the Civic UI or ask the Configurator Agent: “Add guardrails to my MySQL server.”