MySQL
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Connect any MySQL-compatible database to Agent Context. This includes standard MySQL, as well as managed services like PlanetScale, TiDB, Amazon RDS for MySQL, and Azure Database for MySQL.
- Go to Agent Context in the dashboard
- Click Add Source → MySQL
- Enter your connection details (or paste a connection string)
- Click Test Connection to verify, then Save
Connection Parameters
Section titled “Connection Parameters”| Parameter | Required | Default | Description |
|---|---|---|---|
| Host | Yes | — | Hostname or IP address of the MySQL server |
| Port | No | 3306 | TCP port number |
| Database | Yes | — | Name of the database to connect to |
| Username | Yes | — | Username for authentication |
| Password | Yes | — | Password for the specified user |
| Table | No | — | Table or view name. Leave empty to discover all tables. |
Alternatively, you can paste a connection string:
mysql://user:password@host:3306/databaseTable Discovery
Section titled “Table Discovery”When the Table field is left empty, Agent Context automatically discovers all accessible tables and views in the database. You can then select which ones to expose to your agents.
When a specific table is provided, only that table is connected.
Managed Services
Section titled “Managed Services”These MySQL-compatible services work with the MySQL connector:
| Service | Where to find the connection string |
|---|---|
| PlanetScale | Dashboard → Connect → Connection string |
| TiDB Cloud | Cluster → Connect → Connection string |
| Amazon RDS | RDS Console → Connectivity & security |
| Azure Database for MySQL | Azure Portal → Connection strings |
Troubleshooting
Section titled “Troubleshooting”| Issue | Fix |
|---|---|
| Connection refused | Verify the host, port, and that the MySQL server is accepting remote connections. Check firewall rules. |
| Authentication failed | Verify username and password. Check that the user has SELECT permission on the target tables. |
| Timeout | Check network connectivity. For cloud databases, ensure your IP is allowlisted. |