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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
niconicotsuka
Regular Visitor

MySQL: Retrieval of the RSA public key is not enabled for insecure connections.

I am unable to connect a MySQL 8 database server. When I enter the server IP and database name and click the "OK" button, the following error message appears and I cannot proceed.

 

MySQL: Retrieval of the RSA public key is not enabled for insecure connections.

 

My versions are as follows:

PowerBI Desktop version 2.141.1253.0 64bit

Mysql .NET 9.2.0

 

This is apprently a common issue with MySQL and the common fix quoted is add allowPublicKeyRetrieval=true to the connection string except I cant see how the edit the connection string.

1 ACCEPTED SOLUTION

Hi @niconicotsuka,

 

Thank you for your follow-up. In Power BI Desktop, the built-in MySQL connector does not allow directly appending connection string parameters like allowPublicKeyRetrieval=True;useSSL=False in the Server field or Data Source Settings. Therefore, you cannot modify the connection string directly through the "Advanced options" or by editing the data source. The recommended approach is to use an ODBC connection, where you can fully configure the connection string with the required parameters. Alternatively, you can adjust these settings at the server or driver level.

 

Please Accept as solution if this meets your needs and a Kudos would be appreciated.

 

View solution in original post

3 REPLIES 3
v-sgandrathi
Community Support
Community Support

Hi @niconicotsuka,

Thank you for reaching out to Microsoft Community Forum.

 

You are encountering the error "MySQL: Retrieval of the RSA public key is not enabled for insecure connections" when connecting Power BI Desktop to a MySQL 8 server. You are correct that adding allowPublicKeyRetrieval=true to the connection string is the common fix.

To resolve this in Power BI, please follow these steps:

  • In Power BI Desktop, go to Get Data > MySQL Database.
  • Enter your Server IP and Database Name as usual.
  • Click on Advanced options to expand additional settings.
  • In the field for additional settings, enter the following: allowPublicKeyRetrieval=True;useSSL=False;

By adding both options, you should be able to establish a successful connection.

 

I hope my suggestions provided valuable insights. If you have any further questions, don’t hesitate to ask in a follow-up message.

If this post helped, please mark it as "Accept as Solution" so others can benefit as well.

Best regards,
Sahasra

hi Sahasra.

 

As for the additional fields, the only ones I can see are "Command timeout in minutes" and "SQL statement", and I can't find a field to enter a connection string.

 

Is there anything else I should check?

 

Thanks!

Hi @niconicotsuka,

 

Thank you for your follow-up. In Power BI Desktop, the built-in MySQL connector does not allow directly appending connection string parameters like allowPublicKeyRetrieval=True;useSSL=False in the Server field or Data Source Settings. Therefore, you cannot modify the connection string directly through the "Advanced options" or by editing the data source. The recommended approach is to use an ODBC connection, where you can fully configure the connection string with the required parameters. Alternatively, you can adjust these settings at the server or driver level.

 

Please Accept as solution if this meets your needs and a Kudos would be appreciated.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.