aeresov/mysql-client
Drive the mysql CLI safely against MySQL or MariaDB databases — read-only-first, with a workflow for multi-step investigations.
Drive the Linux mysql (mysql-client) CLI safely against MySQL or MariaDB databases. Activate when the user asks the assistant to connect to one, inspect schema, run a SELECT, read EXPLAIN or EXPLAIN ANALYZE output, debug a slow query, look at SHOW PROCESSLIST, performance_schema, or the slow log, or shares a connection string, login-path, DSN, or ~/.my.cnf reference. Read-only-first by design — never passes passwords on the command line, defaults to --safe-updates, runs a where-am-I probe before queries, and bounces DDL, DML, migration, KILL, and SET GLOBAL requests back to the user instead of running them.
Diagnose the mysql-client setup — client installed, settings file present and valid, connection_cmd resolves, a probe connects, .gitignore — and report what is missing. Read-only against your project and the database; runs your connection_cmd and opens one short-lived read-only connection.
Configure mysql-client connection discovery for this project — record the command that prints the database's connection URL, write .claude/mysql-client.local.md, and add it to .gitignore. Read-only against the host and database; runs nothing privileged and never connects.