[GH-ISSUE #2557] Agent cannot find my SQL #1655

Closed
opened 2026-02-22 18:25:54 -05:00 by yindo · 3 comments
Owner

Originally created by @kkellyk on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2557

I turned on the Agent SQL settings and connected.
image

But I ask @agent Checking what are the available databases?
The agent cannot connect to my SQL.
image

I have used python to connect to my MySQL and can read the data normally.
How can I use the agent to read the MySQL data?
Is there a step I'm missing?
Thanks

Originally created by @kkellyk on GitHub (Oct 30, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2557 I turned on the Agent SQL settings and connected. ![image](https://github.com/user-attachments/assets/eb6b4f2c-bacb-489c-b3c3-66b89e13576c) But I ask @agent Checking what are the available databases? The agent cannot connect to my SQL. ![image](https://github.com/user-attachments/assets/cac8b527-d954-4a9d-b4bd-556f0e43b7f6) I have used python to connect to my MySQL and can read the data normally. **How can I use the agent to read the MySQL data?** Is there a step I'm missing? Thanks
yindo closed this issue 2026-02-22 18:25:54 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 30, 2024):

we have a whole doc about this exact issue
https://docs.anythingllm.com/agent-not-using-tools

@timothycarambat commented on GitHub (Oct 30, 2024): we have a whole doc about this exact issue https://docs.anythingllm.com/agent-not-using-tools
Author
Owner

@vin958 commented on GitHub (Mar 12, 2025):

I turned on the Agent SQL settings and connected. image

But I ask @agent Checking what are the available databases? The agent cannot connect to my SQL. image

I have used python to connect to my MySQL and can read the data normally. How can I use the agent to read the MySQL data? Is there a step I'm missing? Thanks

Hello,Have you sloved this issue? If so,can you tell me how to do it?

@vin958 commented on GitHub (Mar 12, 2025): > I turned on the Agent SQL settings and connected. ![image](https://github.com/user-attachments/assets/eb6b4f2c-bacb-489c-b3c3-66b89e13576c) > > But I ask [@agent](https://github.com/agent) Checking what are the available databases? The agent cannot connect to my SQL. ![image](https://github.com/user-attachments/assets/cac8b527-d954-4a9d-b4bd-556f0e43b7f6) > > I have used python to connect to my MySQL and can read the data normally. **How can I use the agent to read the MySQL data?** Is there a step I'm missing? Thanks Hello,Have you sloved this issue? If so,can you tell me how to do it?
Author
Owner

@timothycarambat commented on GitHub (Mar 13, 2025):

https://docs.anythingllm.com/agent/usage#what-is-sql-agent-and-how-to-use-it

Your agent never ever tried to call the SQL agent skill - see the image on this page. You should have seen several tool call outputs here that would show the agent doing actions on the DB.

https://docs.anythingllm.com/agent-not-using-tools#llm-is-refusing-to-even-detect-or-call-a-tool-at-all

@timothycarambat commented on GitHub (Mar 13, 2025): https://docs.anythingllm.com/agent/usage#what-is-sql-agent-and-how-to-use-it Your agent never ever _tried_ to call the SQL agent skill - see the image on this page. You should have seen several tool call outputs here that would show the agent doing actions on the DB. https://docs.anythingllm.com/agent-not-using-tools#llm-is-refusing-to-even-detect-or-call-a-tool-at-all
yindo changed title from Agent cannot find my SQL to [GH-ISSUE #2557] Agent cannot find my SQL 2026-06-05 14:41:57 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1655