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
akwang
Helper II
Helper II

Cannot Connect to MySQL Database

Hi What would be my server name?linden.jpg

 

i tried localhost, localhost:3306 and still unable to connect.

1 ACCEPTED SOLUTION


@akwang wrote:

hi smoupre,

 

i did that and still i cannot connect.

 

Screenshot_1.jpgScreenshot_2.jpg


@akwang

For above error, please ensure that you've specified the correct server name, it could be servierIP:portNo("10.157.19.199:3306") or ServerName. Also ensure that the MySQL Service is running on the server you're connecting to.

Capture.PNG

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Last time I had an issue connecting to MySQL with Power BI, I had to make sure that I was not trying to use Windows credentials but rather database credentials. And it looks like localhost is your server name.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

hi smoupre,

 

i did that and still i cannot connect.

 

Screenshot_1.jpgScreenshot_2.jpg


@akwang wrote:

hi smoupre,

 

i did that and still i cannot connect.

 

Screenshot_1.jpgScreenshot_2.jpg


@akwang

For above error, please ensure that you've specified the correct server name, it could be servierIP:portNo("10.157.19.199:3306") or ServerName. Also ensure that the MySQL Service is running on the server you're connecting to.

Capture.PNG

I can recommend setting up ODBC driver on the machine running mysql - such as  https://dev.mysql.com/downloads/connector/odbc/5.3.html 

Any tutorial on how to use the ODBC?

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.