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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

error come out when apply query in power bi

Hello, team, i get data in power bi by odbc, and data can be loaded to power query. after I click the apply and close to power bi desktop. The query cannot apply successfully with Error returned: 'OLE DB or ODBC error: [DataSource.Error] ODBC: ERROR [22018] [MySQL][ODBC 8.0(a) Driver][mysqld-5.7.23-24-log].' can you please give me any suggestion? i cannot find any solution by google  the error.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , for MySQL make sure you are using the latest driver

https://dev.mysql.com/downloads/connector/net/

 

Also check if you check the same at trace: https://www.youtube.com/watch?v=4QJdCI6xmaA

https://docs.microsoft.com/en-us/power-query/recordingquerydiagnostics

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , for MySQL make sure you are using the latest driver

https://dev.mysql.com/downloads/connector/net/

 

Also check if you check the same at trace: https://www.youtube.com/watch?v=4QJdCI6xmaA

https://docs.microsoft.com/en-us/power-query/recordingquerydiagnostics

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

thank you for your help, i will install the latest mysql to have a look but the power query trancer tutorial is very useful.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors