Reputation: 427
I am trying to connect Power BI (Desktop version) with my online Amazon MySQL database. It demands for following information once you try to establish connection
Server: server IP
Database: database name
Username: MySQL username
Password: MySQL password
First time I received a bit lengthy error, which was because of unavailability of mysql-connector-net-6.6.5.msi. So I followed this link to solve the issue: Microsoft Power BI connect to MySQL.
However, after installing the mysql-connector, I am facing another error:
Whats wrong? One of my mates has successfully connected using the same credentials that I am using.
Upvotes: 1
Views: 13991
Reputation: 81
I'm able to connect directly to a MySQL database on port 3306. As I understand, it would be more secure to go through an SSH tunnel, but this doesn't work yet with Power BI.
So here are instructions for connecting directly:
First, let's make sure that everything besides the PowerBI connection is working.
Download and install the correct version of the MySQL/Net Connector. Right now, version 6.6.5 is the one that works. But from other forums, and from within PowerBI itself, I linked to other versions that did not work (you will know it isn't working, because you probably won't be able to even open Get Data/MySQL Database/Connect).
See if you can connect remotely to your database through some well established utility like MySQL workbench. If you can't,
So after that's working, here are the settings which worked for me in MySQL:
go to Get Data/MySQL database/connect
PowerBI interface. Select "Database" instead of "Windows"
Make sure you select Database instead of Windows.
Upvotes: 6
Reputation: 501
My solution for this was to add the port number to the server name/ip
eg. 192.168.0.1:4664
Upvotes: 0
Reputation: 51
Just a small tip. If you haven't already, restart the machine you just installed the connector on. I had to restart before it started working.
Upvotes: 3