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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sab20
New Member

Connecting to MySQL server from powerBI

Hi! I am receiving this error mesaage when connecting to a remote MySQL server from my PowerBI desktop version. How does one overcome this? I have already downloaded the MySQL Connector net (ver - 9.0).  Any ideas?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sab20 ,

By the error message you provided, it appears that you are trying to make a MySQL remote connection. Before connecting to MySQL, you will need to do some configuration to ensure that the remote connection is successful.

First, you need to Edit the MySQL Configuration File:
Open the mysqld.cnf file, usually located at /etc/mysql/mysql.conf.d/mysqld.cnf. Find the line that starts with bind-address and change its value from

bind-address = 127.0.0.1

to

bind-address = 0.0.0.0

or simply comment out this line

#bind-address = 127.0.0.1

to allow connections from any IP address.
Then restart MySQL:

sudo systemctl restart mysql


Then you also need Grant Remote Access to MySQL User:

GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;


Finally, Configure Firewall. Ensure that your firewall allows traffic on MySQL’s default port (3306).

sudo ufw allow 3306


You can refer to these documents:
How To Allow Remote Access to MySQL | DigitalOcean
MySQL: How to allow remote connection to mysql - Stack Overflow
How to Allow Remote Connections to MySQL (helpdeskgeek.com)

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
sab20
New Member

sab20_0-1721871491870.png

 

Anonymous
Not applicable

Hi @sab20 ,

By the error message you provided, it appears that you are trying to make a MySQL remote connection. Before connecting to MySQL, you will need to do some configuration to ensure that the remote connection is successful.

First, you need to Edit the MySQL Configuration File:
Open the mysqld.cnf file, usually located at /etc/mysql/mysql.conf.d/mysqld.cnf. Find the line that starts with bind-address and change its value from

bind-address = 127.0.0.1

to

bind-address = 0.0.0.0

or simply comment out this line

#bind-address = 127.0.0.1

to allow connections from any IP address.
Then restart MySQL:

sudo systemctl restart mysql


Then you also need Grant Remote Access to MySQL User:

GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;


Finally, Configure Firewall. Ensure that your firewall allows traffic on MySQL’s default port (3306).

sudo ufw allow 3306


You can refer to these documents:
How To Allow Remote Access to MySQL | DigitalOcean
MySQL: How to allow remote connection to mysql - Stack Overflow
How to Allow Remote Connections to MySQL (helpdeskgeek.com)

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors