Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jp25
Frequent Visitor

Error when connecting to My SQl

Hello, 

 

I am trying to connect power bi to my local sql database  and am getting the following error 

 

I'd really appreciate your guidance on the following. 

 

errorpbi.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi@jp25, 

Please ensure the following points:

1.You are using the latest version of Power BI Desktop and the latest .net driver. if not, you can click Here.

2.Your MySQL workbench is installed in the same machine as Power BI Desktop.

3.If the connection is successful in MySQL workbench, please use the same connection string and make sure that you use Database credential in Power BI Desktop to connect to the MySQL database.

 

We have found that people have previously had similar errors occurred, please see if this helps you. Unable to connect to MySQL Server

By the way, here are some tips for working with MySQL in Power BI: Power BI Tips For Working With MySQL

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi@jp25, 

Please ensure the following points:

1.You are using the latest version of Power BI Desktop and the latest .net driver. if not, you can click Here.

2.Your MySQL workbench is installed in the same machine as Power BI Desktop.

3.If the connection is successful in MySQL workbench, please use the same connection string and make sure that you use Database credential in Power BI Desktop to connect to the MySQL database.

 

We have found that people have previously had similar errors occurred, please see if this helps you. Unable to connect to MySQL Server

By the way, here are some tips for working with MySQL in Power BI: Power BI Tips For Working With MySQL

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@jp25 , 1. Make sure external access for the user is allowed

2. Mysql is up and running 

3. Make sure latest .net drive is installed https://dev.mysql.com/downloads/connector/net/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.