Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
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?
Solved! Go to Solution.
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.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
60 | |
54 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |