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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Power BI not recognizing Mysql database

Hi there - I'm trying to connect Power BI to my mysql database connection and am getting the error message that:

Details: "MySQL: Authentication to host 'localhost' for user 'root' using method 'caching_sha2_password' failed with message: Unknown database ''******'" (starred out the database name).

 

As background, the database is hosted externally and i am connecting to it through MySQL workbench using tcp/ip over SSH. i connect to the database just fine, and i see the database name very clearly in the top left of the workbench.. (also when i do select database()). 

 

in 'get data' i select mysql (the connector has been installed) and i select localhost and the databasename. for username and password, i enter root and my db password and it then gets me to that error message.

 

I new to connecting to mysql and so may very well be doing something very basic incorrectly  - like somehow not actually running the database on my local server. i assume that when i've completed the connectio to it in mysql and it's selected that it should then be hosted locally?   Any ideas? i've tried all combinations and am at a loss.

 

thank you!!

 

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Before you can connect to a MySQL database, you need to install connector on your computer. Select the driver that matches your Power BI Desktop installation.

After installing the MySQL connector, refer to this blog to connect to MySQL in Power BI Desktop.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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