Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
DrinkableRiver
New Member

Internal Error connecting PowerBI to MySQL database

Hello,

 

I am currently trying to connect a dashboard I designed with a MySQL database holding the data currently. However, I keep receiving this error: Details: "An error happened while reading data from the provider: 'Internal connection fatal error. Error state: 18'".

 

Is this an issue with PowerBI's side or the host's side and is there a way to fix this? 

 

Thank you.

10 REPLIES 10
Bullukka
New Member

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 | Po...

surajsohigh
New Member

To solve the error message "An error happened while reading data from the provider: 'Internal connection fatal error. Error state: 18'", you can try the following steps:

  1. Go to File tab on the ribbon in PowerBI Desktop, then click on About and check the PowerBI version. Update PowerBI if it is not the latest version.
  2. Download and Install MYSQL connect - MySQL :: Download Connector/NET
  3. If the PowerBI version is already the latest, click on the dropdown arrow below the Transform Data button, then click on Data source settings and Global Permissions.
  4. Consider using a server name instead of an IP address to connect to SQL server.

Note: Make sure to restart your running applications so everything get loaded. (Don't Ignore this)

HALESHA8055
New Member

Screenshot (10).png

 

Thanks. Help a lot. The error is a simple thing. NEED READ, correctly

This and the step above:

Download and Install MYSQL connect - MySQL :: Download Connector/NET

 

You need the drivers to connect and then make sure you are connecting to the right DB. Had the same issue and was solved after downloading .NET and choosing Other Sources and selecting mySQL from the list.

 

The other thing you might want to check is that you are choosing signing in with database credentials and not Windows. That is found on the left when entering the password.

I tried with mysql server, having the same issue

 

PeterAyub
New Member

Did you get solution to this having same error 

JosefPrakljacic
Solution Sage
Solution Sage

Hi @DrinkableRiver ,

In your scenario, are you able to connect to the MySQL database in MySQL workbench? Please ensure that MySQL workbench is installed in the same machine as Power BI Desktop.


If the connection is successful in MySQL workbench, use same connection string and make sure that you use Database credential in Power BI Desktop to connect to the MySQL database, and you can review this blog about connecting to MySQL in Power BI Desktop.


If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

Thank you for responding.

 

Unfortunately, even after trying those methods I am still receiving the same error.

 

Do you know of any other potential solutions perhaps? 

Have you found any solution for this issue? I am able to connect to the Azure MySQL using Workbench but I am getting the same error as yours while connecting the PowerBI data source to Azure MySQL

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.