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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
tim_goodsell
Regular Visitor

Conne ting PowerBI to Azure MYSQL Database

Hi

 

I have a report which connects to an Azure MySQL database. This works fine within Desktop but when i publish it to the Power BI Service do i need an On Premise Data Gateway installed to refresh the data ?

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You generally do not need an on-prem data gateway for cloud sources.

 

From this previous post:

If you are connecting to a SQL Server that hosted in Azure VM but not Azure SQL database. For the former, gateway is required, you should install gateway on the same machine, then add SQL Server data source within the gateway. For Azure SQL database, gateway is not required.

View solution in original post

3 REPLIES 3
witczakp
New Member

Hello All,

I have similar issue, I have Azure Database for MySQL flexible server, and on PowerBi Desktop report, everything is working ok, after installation of MySQL connector.. (only specific version works, not latest)

But it is not connecting to this database on Azure, after PowerBi report is beeing published..

Connection status is Offline, and in details window, I see error: 

Error codeDMTS_DatasourceHasNoCredentialError
Connection errorConnection has no credentials.
When I tried to edit connection it this window:
witczakp_1-1700226552649.png

I see that login name and password are empty, when I fill them I can't save.. just nothing happens. On dev tools in web browser I see some errors..

I also tried to create new MySql connection, but.. then there is no MySql connector available in this window in Connection type dropdown..

witczakp_2-1700226687625.png

 

Do You know if My SQL connection is even possible using https://app.powerbi.com/ ??

I'm stuck and I'm wondering to write azure function which will return all data base as Json.. but... I feel that is not good idea.

 

powerbirt
New Member

Hey Tim, what did you end up doing here? 
We have a Azure Database for MySQL that we connect to in PowerBI desktop. 
We've created a dataset and when we try to publish it and link the data source in the powerbi gateway settings it will not make a connection to the Azure DB. 
What did you do to end up getting this dataset published? If it's not requried to have a onprem data gateway for this - what is the way to do this? 

AlexisOlson
Super User
Super User

You generally do not need an on-prem data gateway for cloud sources.

 

From this previous post:

If you are connecting to a SQL Server that hosted in Azure VM but not Azure SQL database. For the former, gateway is required, you should install gateway on the same machine, then add SQL Server data source within the gateway. For Azure SQL database, gateway is not required.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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