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
AnibalPb
Frequent Visitor

Cannot connect to MySQL database

Hi, I'm having a problem connecting Power BI to a MySQL DB. I'm connecting to localhost and then select the database 'monitore_perfileducacion'. I don't know why but this error comes up when it appears everything's alright. And if I try to connect to the IP that appears at the workbench connections in MySQL it doesn't work. How can I fix this? I tried everything in almost every available post.

 

DataSource.Error: MySQL: Authentication to host 'localhost' for user 'root' using method 'caching_sha2_password' failed with message: Unknown database 'monitore_perfileducacion'
Details:
DataSourceKind=MySql
DataSourcePath=localhost;monitore_perfileducacion
Message=Authentication to host 'localhost' for user 'root' using method 'caching_sha2_password' failed with message: Unknown database 'monitore_perfileducacion'
ErrorCode=-2147467259

 

The screen looks like this, and if I press refresh in the preview, the error is shown. Thing is, the connection is alright in MySQL.

 

Duda Power BI community.png

 

 

Duda Power BI community (1).PNGDuda Power BI community (2).PNG

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@AnibalPb ,

 

This error message means your root name or password is incorrect. Please check them again in mysql database.

 

Regards,

Jimmy Tao

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@AnibalPb ,

 

This error message means your root name or password is incorrect. Please check them again in mysql database.

 

Regards,

Jimmy Tao

Hi Everyone,

 

Someone could solve this because it is also happening to me with the same error message.

 

Thanks.

Hi Jimmy,

I had the same issue. I'm pretty sure the username and password is correct (I can log in into workbench with same credentials)I also tried clear permission and reconnect again, still doesn't work. Do you have other suggestions?

 

 

Thanks,

Vicky

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.