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

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

Reply
nfiorilla
Regular Visitor

MySQL Error in Scheduled Data Update

Hi,
I have a MySQL database, were I take data for my reports. I have schedule the data update but the gateway always fail with the following error:"MySQL: Fatal error encountered during data read."

Is it possible to set MySQL net connector, that gateway uses, parameters to avoid this error?

error_powerbi.jpeg

Thanks!

1 ACCEPTED SOLUTION

I found this as a soluction

set net_write_timeout=99999; set net_read_timeout=99999

 but it`s impossible to set that variables to the gateway or power bi desktop.

 

https://stackoverflow.com/questions/2546115/mysql-exception-fatal-error-encountered-during-data-read

 

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Have you tried updating the On-Premise Data Gateway to the latest version?  I'm wondering if the project has been updated to a newer engine but the gateway has fallen behind?

Hi @Anonymous,

 

It is a new setup. I downloaded the data gateway yesterday.

thanks!

Anonymous
Not applicable

Kick off a refresh using your PBIX file and the Power BI Desktop.  Do you get an error there also?

 

Did you need to load any MYSQL drivers onto your On-Premise data gateway server?  Could those differ from the ones on your local machine using Power BI Desktop?

@Anonymous, it takes a lot of time, compare to the developer server but it finally update.
Can I set with mysql driver use in the data gateway?
I have set a power bi trial point to the developer server and it works ok. But both server have the same mysql version. They have differents windows.

Anonymous
Not applicable

When the Data Gateway is called as part of the refresh, the gateway server itself does the work.  This is why the drivers that are installed are important.  You are correct that it being a different operating system will mean its drivers will differ slightly which isn't what i'm pointing to.

 

What i'm concerned with are elements such as whether its a 64-Bit driver.  Whether its the same driver (ignore OS differences).  Things like this.  We want to think about it like this:  "If you were to run Power BI Desktop on the server and do a refresh, would it work?  If it doesn't work, what would you need to do to get it working?"

I installed the same MySQL Net Connector in both servers. And I'm trying to compare mysql server configuration now.

I found this as a soluction

set net_write_timeout=99999; set net_read_timeout=99999

 but it`s impossible to set that variables to the gateway or power bi desktop.

 

https://stackoverflow.com/questions/2546115/mysql-exception-fatal-error-encountered-during-data-read

 

Anonymous
Not applicable

Hi @nfiorilla,

 

You can direct add these additional parameter string in advanced option or edit in query editor.

MySQL.Database

Power BI Tips for Working with MySQL

 

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

I resolve this issue setting the parameters in the my.cnf of MySQL Server.

 

Thanks.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.