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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
omiajpy
New Member

Power BI cannot authenticate MySQL user granted from role

Hello,

 

As described in the subject, Power BI Desktop cannot authenticate if the user created was granted privileges from a role in MySQL.

 

After I granted the user privileges directly, Power BI authenticated right away.

 

Is this a limitation on the connector or on Power BI?

 

Is there a way for this to work with roles assignment?

 

Thanks!

1 ACCEPTED SOLUTION
FarhanJeelani
Super User
Super User

Hi @omiajpy ,

This is a known limitation in Power BI’s MySQL connector. Power BI currently requires that database users have directly assigned privileges for authentication and data access, rather than inheriting them through MySQL roles.

 

MySQL roles are a relatively newer feature, and many client applications (including Power BI) may not fully support role-based privilege inheritance. Power BI’s MySQL connector checks for privileges directly assigned to the user during the connection process. If privileges are granted via roles, Power BI fails to authenticate.

 

Workarounds:

  1. Direct Privilege Assignment (Recommended): As you discovered, granting privileges directly to the user resolves the issue.
  2. Use a Proxy User: You can create a dedicated MySQL user with direct privileges solely for Power BI connections.
  3. Scripted Solution (Not Ideal): Automate privilege reassignment from roles to users using MySQL scripts if necessary.

Is there a way for this to work with roles? Unfortunately, as of now, there is no built-in support in Power BI’s MySQL connector for privileges assigned via roles. You will need to assign permissions directly to the user.

 

Please mark this as solution if it helps you. Appreciate Kudos.

View solution in original post

1 REPLY 1
FarhanJeelani
Super User
Super User

Hi @omiajpy ,

This is a known limitation in Power BI’s MySQL connector. Power BI currently requires that database users have directly assigned privileges for authentication and data access, rather than inheriting them through MySQL roles.

 

MySQL roles are a relatively newer feature, and many client applications (including Power BI) may not fully support role-based privilege inheritance. Power BI’s MySQL connector checks for privileges directly assigned to the user during the connection process. If privileges are granted via roles, Power BI fails to authenticate.

 

Workarounds:

  1. Direct Privilege Assignment (Recommended): As you discovered, granting privileges directly to the user resolves the issue.
  2. Use a Proxy User: You can create a dedicated MySQL user with direct privileges solely for Power BI connections.
  3. Scripted Solution (Not Ideal): Automate privilege reassignment from roles to users using MySQL scripts if necessary.

Is there a way for this to work with roles? Unfortunately, as of now, there is no built-in support in Power BI’s MySQL connector for privileges assigned via roles. You will need to assign permissions directly to the user.

 

Please mark this as solution if it helps you. Appreciate Kudos.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.