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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jan_Trummel
Helper IV
Helper IV

MySQL ODBC Connector can not connect to data source

Hello community,

I have installed a MySQL database on my computer, which I access with Power BI Desktop. I use the MySQL Connector/ODBC for this. As a MySQL user I use the root administrator account. The connection between MySQL and Power BI Desktop works very well.

MySQL Connector ODBC on my computerMySQL Connector ODBC on my computer

Here is the Source step in Power Query:

= Odbc.DataSource("dsn=mysql2", [HierarchicalNavigation=true])

I also installed an on-premesis gateway on the machine with the MySQL database.

The gateway version is 3000.162.9 (February 2023).

However, when I upload the report to the Power BI service and register the data source in the gateway, I get this error message:

The data source cannot be created.
Unable to connect to the data source. Either the data source cannot be accessed, the connection timed out, or the credentials for the data source are invalid. Check the data source configuration and contact the data source administrator to troubleshoot.

Details:

[My gateway name]: ODBC: ERROR [IM002] [Microsoft][ODBC Driver Manager] The data source name was not found and no default driver was specified

The credentials are definitely correct. That can not be it.

Here is the complete configuration of the new data source (sorry, it's in German):

The configuration of the new data sourceThe configuration of the new data source

What am I doing wrong? I hope someone can help.

Greetings from Germany!

1 REPLY 1
lbendlin
Super User
Super User

I also installed an on-premesis gateway on the machine with the MySQL database.

that is generally not recommended. They will fight for the machine's resources.

 

Check the firewall settings on that machine and open the port. Make sure you use 64 bit ODBC.  Consider using the .Net connector instead.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.