web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Microsoft Copilot Stud...
Copilot Studio
Suggested Answer

Microsoft Copilot Studio connection to MySQL database

(1) ShareShare
ReportReport
Posted on by 2

I’ve been working on connecting Microsoft Copilot directly to my local MySQL database. Here’s what I’ve done so far:

  • Created a MySQL user with the necessary privileges to allow remote access.
  • Set up an on-premises data gateway to facilitate the connection between the MySQL database and Microsoft Power Automate.
  • Added the MySQL connector in Power Automate to enable communication between the database and Copilot Studio.

However, I’m encountering the following challenges:

  • At times, I encounter a connection error indicating that the MySQL connector is receiving an incorrect request.

    The connector ‘MySQL’ returned an HTTP error with code 400. Error Code: ConnectorRequestFailure

  • No response from Copilot: In certain cases, the bot doesn't return any response after I attempt to interact with the database.

  • General message about database access: I also receive messages stating that Copilot doesn’t have direct access to databases and cannot execute queries or show real-time results.

After doing some additional research, I found that Microsoft Copilot Studio doesn't seem to support direct execution of MySQL queries on a local database.

Could you please provide some guidance on whether there's another approach or if I'm missing something in my setup?

I tried to connect MySQL database to Microsoft Copilot Studio. However, it seemed impossible to directly retrieve data from the database.

Categories:
I have the same question (0)
  • CU20120730-0 Profile Picture
    4 on at
    hello, may i know have you successfully connect MySQL database to Microsoft Copilot Studio to directly retrieve data from the database? if yes, how do you done it, can you share with me. Thx you.
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Moderator on at
    Hello,
     
    why would you like to use MySQL database? Is it a must-have requirement? It would be easier for you to use a Dataverse table for that purpose.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
    Interested in GenAI? Visit my site!
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,592 Super User 2025 Season 1 on at
     
    The steps followed seems to fine.
     
    Anyhow connecting MySQL database to Microsoft Copilot Studio directly is not possible at this point.
     
    Does your approach provides output sometimes? If so we can check the Power automate flow logs.
     
    Anyhow will wait for other experts to give a solution.
     
     
    Thanks.
    For Copilot studio technical blogs: Visit my Site
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 612

#2
chiaraalina Profile Picture

chiaraalina 161 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 116

Last 30 days Overall leaderboard