Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Queries configured MySQL and MariaDB databases from .env connection blocks, read-only by default, selected by label or index.
39% 87%+48 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 9 of 23 without it.
3 of 3 safety checks passed
Not used yet
Query MySQL / MariaDB databases declared in .env. Connections follow the same numbered pattern as SOCIAL_YOUTUBE_N_* / SOCIAL_INSTAGRAM_N_* — one block per database, labelled for humans, picked by label or index at call time.
Add a block to .env (gitignored). Increment the index per connection:
# ── MySQL: orders-dev ────────────────────────────────
DB_MYSQL_1_LABEL=orders-dev
DB_MYSQL_1_HOST=mysql.dev.internal
DB_MYSQL_1_PORT=3306
DB_MYSQL_1_DATABASE=orders
DB_MYSQL_1_USER=agent_readonly
DB_MYSQL_1_PASSWORD=... # raw; .env is gitignored
# DB_MYSQL_1_SSL_CA_PATH=/path/ca.pem # optional, enables TLS verification
# DB_MYSQL_1_ALLOW_WRITE=false # default false
# DB_MYSQL_1_QUERY_TIMEOUT=30 # seconds, default 30
# DB_MYSQL_1_MAX_ROWS=1000 # default 1000
Alternative — full DSN instead of components (DSN wins when both are set):
DB_MYSQL_2_LABEL=analytics-prod
DB_MYSQL_2_DSN=mysql://agent_ro:***@analytics.prod.internal:3306/analytics
LABEL is always required — it's how agents pick the connection.
All commands output a single JSON line on stdout (safe to pipe). Errors go to stderr as JSON and exit non-zero.
python3 .claude/skills/db-mysql/scripts/db_client.py accounts
Next to this one in the catalogue, plus more from the same author.