MySQL-AIops
MySQL-AIops is an open-source AI operations tool for MySQL 8.x and MariaDB 10.6+ database administrators (DBAs). It connects to databases via PyMySQL and reads information_schema / performance_schema, providing core capabilities such as slow query root cause analysis, InnoDB lock wait and deadlock chain analysis, replication lag root cause analysis, and table fragmentation analysis. It has a built-in governance framework: unified audit logging, token/runaway budget protection, reversible operation records, and risk level labels. The tool is offered in two forms: a CLI and an MCP server, with a total of 35 MCP tools (26 read, 9 write), and all calls record audit rows. Credentials are stored encrypted locally, write operations support dry-run and double confirmation, and reversible write operations record a reverse operation descriptor. The project uses the MIT license, is community-maintained, and is not affiliated with Oracle or the MariaDB Foundation.