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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Pragati11
Super User
Super User

Dashboard Refresh crashes with MySQL database

Hi all,

 

I am using Power BI to create a dashboard.

The dashboard uses MySQL database connection to connect to data and use this data to create reports on dashboards.
Data from the MySQL database is retrieved by writing individual queries in Power BI Query Editor, in-order to avoid loading whole data from the database.

 

I am getting the following issue while refreshing my dashboard:
                                                                  "MySQL: fatal error encountered during command execution"

I have tried some ways suggested on Microsoft Power BI blog to fix this issue.

But, in this case these doesn't seem to work. 

One thing to note here is the data we use, keep on increasing on daily basis. It is the daily activity of users captured on a website. 

Issue.jpg
Can you please help us to fix these issues in Power BI?

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Pragati11,

 

I could not reproduce your problem on my side. Only when I set variables incorrectly in custom query code, this error was prompted when trying to connect to database. 

 

In your scenario, did you set variables? Could you post the code here?

Besides, please test to load whole data from database without writing individual queries, to check if issue persists when refreshing. 

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft,

 

Thank you so much for your reply.

 

Just a question here: What do you mean by setting variables incorrectly?

 

In my case the tables are like very big on the database nearly 3-4 GB already. And the data on them keeps on increasing on daily basis.

 

If I load the whole table will it not make Power BI much slower?

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors