Reputation: 9
I was about to start a Project using MySQL and Power BI for creating a dashboard but I faced a severe challenge. When I was going to connect MySQL database in Power BI, I faced an error like:
Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An established connection was aborted by the software in your host machine.)"
I am not able to find any solution for this over the internet.
Upvotes: 0
Views: 2576
Reputation: 11
Ok, so I had the exact same error and I got that resolved. So you'll need to ensure that the MySQL connector net is installed. And I made the mistake of importing the JAR file instead.
DO NOT DO THAT. Download and Install the msi package (If you're using windows) from this link. Connector Net Download Link.
Once that's installed.
And from here, you can choose to "Load" or "Transform Data" and get on with visualizing it.
Note :
1. If power BI throws up an error window asking for credentials choose "Database Credentials". By default "Windows Credentials" would be selected.
2. Here, provide the username and password for your SQL Connection. The same credentials which you would use in your code based connections.
3. For XAMPP the default username would be "root" and the password would be an empty field.
4. Save the database credentials and try connecting to the database again and it should work.
Upvotes: 1