mysql-tuning-advisor
Skill by eosphoros-ai
Reviews MySQL configuration and resource allocation against a real workload. For each suggested change it gives the expected effect, risk and rollback. Meant for tuning self-hosted or cloud MySQL instances.
Install mysql-tuning-advisor
Built from the published package, never by AI.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.claude/skills && cp -r /tmp/DB-GPT/assets/suites/mysql-ops-expert/skills/mysql-tuning-advisor ~/.claude/skills/mysql-tuning-advisorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/eosphoros-ai/DB-GPT /tmp/DB-GPT && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DB-GPT/assets/suites/mysql-ops-expert/skills/mysql-tuning-advisor ~/.gemini/antigravity-cli/skills/mysql-tuning-advisorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mysql-tuning-advisor in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
MySQL Tuning Advisor is an agent skill that reviews MySQL configuration and resource allocation against the actual workload. It checks the memory budget, redo and undo logs, flush policy, connections, IO settings and MySQL 8.0 specific switches. It first asks whether a bottleneck is caused by parameters at all, and points to other skills if it is not.
The workflow asks for machine specs, the MySQL version and deployment type, global variables, and two status snapshots taken 60 seconds apart, plus a workload profile. Each recommendation lists the current value, suggested value, evidence, expected effect, restart need, risk and rollback command. It is aimed at people who tune MySQL and want changes backed by measured data rather than generic templates.
Written from the project's SKILL.md and checked against it.
What it can do
- Workload goal settingAsks for one primary goal: throughput, low latency or durability.
- Memory budget checkChecks buffer pool and per connection memory against physical RAM.
- Redo, binlog and flush reviewReviews redo capacity, flush policy and IO capacity settings.
- Connection and thread reviewChecks thread cache, table caches and max_connections against measured rates.
- Temp table and sort reviewReviews temp table sizes, sort and join buffers and related limits.
- MySQL 8.0 switch reviewEvaluates 8.0 and 5.7 features such as dedicated server mode and histograms.
- Structured change listOutputs each change with current value, expected effect, risk and rollback.
- Do-not-change listLists settings that should stay as they are, with the reasons.
What you need
- Access to the MySQL instance or pasted SHOW GLOBAL VARIABLES output
- Two SHOW GLOBAL STATUS snapshots taken 60 seconds apart
- Machine specification: CPU cores, memory, disk type and IOPS limit
- MySQL version and deployment type (self-hosted or cloud RDS)
Try asking
- Review my MySQL config against this workload and machine spec.
- Check my buffer pool and per connection memory against my RAM.
- Suggest redo log and flush settings, with rollback for each change.
Good to know
- Needs two status snapshots 60 seconds apart; one snapshot cannot show rates.
- Changes to sync_binlog or flush settings need business confirmation about data loss.
- Guides against listing more than 8 changes at once.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: assets/suites/mysql-ops-expert/skills/mysql-tuning-advisor/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/parameter-guide.md11 KB -
references/tuning-report-template.md5 KB
Alternatives to mysql-tuning-advisor
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
mysql-tuning-advisor: common questions
Does it change my MySQL settings automatically?
The source describes producing recommendations and a report file. It does not say it applies changes to a live instance.
Why does it need two status samples?
STATUS values are cumulative, so a single sample cannot show rates. The source asks for two samples taken 60 seconds apart.
Does it only cover MySQL 8.0?
It covers 8.0 specific switches and also reviews 5.7 features and behaviour.
How do I install mysql-tuning-advisor?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mysql-tuning-advisor free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mysql-tuning-advisor safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mysql-tuning-advisor?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
