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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
elguestca1
Advocate I
Advocate I

PBI to MySQL. Unable to connect to foreign data source

Hello,

I am facing an issue while trying to connect through Power BI MySQL database connector navigator to MySQL database. I did not have this issue before and I have no idea what is the problem now.

When I connect to database to MySQL server while using the navigator mode I receive DataSourceError that this data source is foreign. 

elguestca1_0-1715604371907.png


Once I am trying not to use navigator mode, but taking data while writting simple SQL statement it works fine and I can retrieve data to Power BI.

It would be ok for me to use SQL statement, but I face another issue while trying to schedule refresh the report and I believe that these issues are somehow linked. 

This is the error I get while trying to manage scheduled refresh.

elguestca1_1-1715604867242.png

 



Maybe anyone has any ideas what could cause the problem and is it Power BI issue or I should search for the answer in MySQL database? As I said, I faced this issue about 1 month ago, everything was working fine till then. I also can connect to MySQL Workbench with the same credentials without any troubles.

Thank you.



1 ACCEPTED SOLUTION
elguestca1
Advocate I
Advocate I

I found a solution. It seems that after the update MySQL database connection does not work with personal on-premises gateway on PBI service, even though I can connect to DB on PBI desktop. I had to use standart instead of personal and it worked, now I can use scheduled refresh. 

https://community.fabric.microsoft.com/t5/Service/Authentication-Error-in-PowerBI-Service-MySql-serv...

View solution in original post

3 REPLIES 3
elguestca1
Advocate I
Advocate I

I found a solution. It seems that after the update MySQL database connection does not work with personal on-premises gateway on PBI service, even though I can connect to DB on PBI desktop. I had to use standart instead of personal and it worked, now I can use scheduled refresh. 

https://community.fabric.microsoft.com/t5/Service/Authentication-Error-in-PowerBI-Service-MySql-serv...

Anonymous
Not applicable

Hi, @elguestca1 

According to the description, errorCode=-2147467259 often represents invalid credentials for the datasets. In this case, please try to clear the credentials about MySQL in Power BI Desktop and reconnect to it.


If you can connect successfully using the above method, try configuring the schedule refresh again to see if you get an error.

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

@Anonymous,  thank you for your reply.

But if this is the case why would SQL statement work, but the navigator mode would not? Shouldn't the issue with credentials dissable connection for all types?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.