Forum Discussion
Internal Error connecting PowerBI to MySQL database
Fixing an Error: Power BI Connection with MySQL or Azure Database
#Azure
#PowerBI
#MySQL
This article is intended to help people who are facing the same problem I had when trying to connect Power BI to a MySQL or SQL Server database.
If you encountered the following errors, or even after doing exactly what Power BI asks—downloading and installing the connector—and it still doesn’t work, below are the screenshots and the solution.
First, the following message appears for you:
image
You click on Learn more, follow all the procedures, install the connector, and even then it does not work.
The latest version downloaded is this one: net-8.1.0.msi
image
The problem may be related to several factors, such as compatibility, operating system version, among others.
I searched some forums, and the issue can often be fixed by downloading older versions.
I downloaded the version most recommended by them; it worked at first, but later other errors appeared.
So the tip I give is: you need to test different versions and see which one works best on your computer.
I will write down the errors, post the screenshots, and show the recommended versions and which one worked on my computer.
You should test these first—it helps you avoid wasting too much time. If it doesn’t work, then you can download other versions.
In the next posts, I will leave the link.
Below is another version I installed, which worked but later showed another error:
image
If these other errors appear, follow what was explained and it will be resolved.
Example 1:
Details: "We were unable to find a database provider with the invariant name 'MySql.Data.MySqlClient'."
Example 2:
image
The version that worked perfectly for me was: net-8.0.32.msi
image
After that, the connection with the database worked perfectly.
image
Here is the link to download several versions:
https://downloads.mysql.com/archives/c-net/
image
If anyone is having this difficulty, I hope this helped, because it took quite a lot of my time until I managed to fix it.
Source of the solution:
Corrigindo erro: Conexão do power BI com Banco de Dados MySQL ou Azure | Wenderes Cunha | Azure | Power BI | MySQL | DIO