Skip to content

MySQL

CategoryDatabases
CLImysql
AuthBasic (username/password)
ConfigMYSQL_HOST, MYSQL_PORT (optional)

Wraps the mysql CLI client to give CodeBuddy access to MySQL databases. The agent can execute queries, inspect schemas, and manage database objects.

Install the MySQL client:

Terminal window
# macOS
brew install mysql-client
# Linux (Debian/Ubuntu)
sudo apt-get install mysql-client
# Linux (Fedora)
sudo dnf install mysql
# Windows
winget install Oracle.MySQL

The skill includes a bundled install.sh for automated setup.

Connect using standard MySQL environment variables or pass credentials directly:

Terminal window
export MYSQL_HOST="localhost"
export MYSQL_PORT="3306"
  • Queries — execute SELECT, INSERT, UPDATE, DELETE
  • Schema — list databases, tables, columns, indexes
  • Admin — show processlist, variables, status
  • Performance — EXPLAIN queries, slow query analysis
  • “Show the schema for the orders table”
  • “Find all users who signed up in the last 30 days”
  • “Explain this slow query and suggest improvements”
  • “List all databases on this server”