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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Unable to Connect to MySQL Database

Upon the recent update, I have been unable to connect to our MySQL data sources.  I have been receiving the following error message: "An error happened while reading data from the provider: 'Object reference not set to an instance of an object.'"

 

Capture.PNG

 

Has anyone else encountered this error and were you able to find a solution? 

 

Thank you for any advice you may be able to offer that may help me resolve this issue. 

 

-Grant

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Hi @Anonymous,

In your scenario, are you able to connect to the MySQL database in MySQL workbench? Please ensure that MySQL workbench is installed in the same machine as Power BI Desktop.


If the connection is successful in MySQL workbench, use same connection string and make sure that you use Database credential in Power BI Desktop to connect to the MySQL database, and you can review this blog about connecting to MySQL in Power BI Desktop.

Thanks,
Lydia Zhang

View solution in original post

6 REPLIES 6
eparedez
New Member

Using a power bi desktop or service?

Do the following:

- Check the properties connection..
- Check if the MySQL port is open

Anonymous
Not applicable

I am using Power BI Desktop.  

Anonymous
Not applicable

 

Hi @Anonymous,

In your scenario, are you able to connect to the MySQL database in MySQL workbench? Please ensure that MySQL workbench is installed in the same machine as Power BI Desktop.


If the connection is successful in MySQL workbench, use same connection string and make sure that you use Database credential in Power BI Desktop to connect to the MySQL database, and you can review this blog about connecting to MySQL in Power BI Desktop.

Thanks,
Lydia Zhang

Anonymous
Not applicable

After clearing the previous permission and reconnecting to the database everything is working smoothly. 

 

Thank you for the solution!

 

Anonymous
Not applicable

Upon the recent update, I have been unable to connect to our MySQL data sources.  I have been receiving the following error message: "An error happened while reading data from the provider: 'Object reference not set to an instance of an object.'"

 

Capture.PNG

 

Has anyone else encountered this error and were you able to find a solution? 

 

Thank you for any advice you may be able to offer that may help me resolve this issue. 

 

-Grant

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors