Overview
MySQL tool allows you to query and manage MySQL databases directly from your AI agents.Installation
Environment Variables
Quick Start
Usage with Agent
Available Methods
query(sql)
Execute a SQL query.execute(sql)
Execute a SQL statement (INSERT, UPDATE, DELETE).list_tables()
List all tables in the database.Docker Setup
Common Errors
| Error | Cause | Solution |
|---|---|---|
mysql-connector not installed | Missing dependency | Run pip install mysql-connector-python |
Connection refused | Database not running | Start MySQL server |
Access denied | Wrong credentials | Check username/password |
Related Tools
- PostgreSQL - PostgreSQL database
- SQLite - SQLite database
- MongoDB - NoSQL database

