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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
selofer
New Member

unable to connect to mysql

Hi

 

I'm trying to connect to my online mysql database through Power BI Desktop, but no matter the configuartion, i get an error :

 

« MySQL : Unable to connect to any of the specified MySQL hosts. »

 

Is there an IP to whitelist on the firewall ? is it my own IP ? Any other idea 

 

Thanks

2 REPLIES 2
SoniaB102
Frequent Visitor

Adding the port to the end of the servername worked for me.  Like this:

 

servername:port

v-ljerr-msft
Employee
Employee

Hi @selofer,

 

Based on my research, you should be able to follow steps below to troubleshoot this issue.Smiley Happy

 

Firstly, are you able to connect to the database through MySQL workbench? Make sure that MySQL workbench is installed  on the same machine with Power BI Desktop. If the connection fails, please follow the instructions in this blog to troubleshoot this issue.

Secondly, if you are able to connect to database using MySQL workbench, please use same connection parameters in Power BI Desktop, and also add port number with server name to connect to MySQL.

Thirdly, ensure that you install MySQL Connector/Net 6.6.5 for Microsoft Windows on your computer. Select the driver that matches your Power BI Desktop installation (32-bit or 64-bit).

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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