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
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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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