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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
bisigreat
Regular Visitor

Cannot connect Powerbi to MySQL Database

Hi,

 

I have issue conncting MySQL database with Powerbi Desktop.

 

The error message  reads "The server was not authorized"

 

Please I need help, it has been over two weeks.

 

Regards,

 

Bisi.

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @bisigreat,

Do you get the error message “The user was not authorized” ? If that is the case, firstly, please check if you are able to connect to the database through MySQL workbench.

Secondly, if you are able to connect to database using MySQL workbench, in Power BI Desktop, go to “File –> Options and Settings –> Options –>Global(Data Load) to delete the cache and go to “File –> Options and Settings –> Data Source Settings->Global permissions” to delete the old MySQL data source connections.

Thirdly, please use same connection parameters as MySQL workbench’s in Power BI Desktop, then connect to MySQL database following the instructions in this blog, and use database authentication as other post.

Thanks,

Lydia Zhang

Greg_Deckler
Community Champion
Community Champion

Are you using database authentication or Windows authentication? Use database authentication with MySQL.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.