Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I need to set up MySQL database in my computer. I downloaded the Windows (x86, 32-bit), MSI Installer from here.

I run the installer. At the final stage, the installer reach Apply configuration stage. enter image description here

But it stops at Starting Server. The log says:

    MySQL error 0: Retrieval of the RSA public key is not enabled for insecure connections. Failed to connect to MySQL Server 8.0.11 after 10 attempts. Ended configuration step: Starting Server

I already entered a root and added a user and created a password for them. The passwords had yellow warning, meaning that they are not strong, but also not weak. The wizard accepted them so I proceeded.

Can you please help me identify the source of the problem and how to solve it?

EDIT: I am using Windows 10. The server is my localhost.

like image 381
user9371654 Avatar asked May 20 '26 02:05

user9371654


2 Answers

I had the same problem after importing some new data into my DB.

Deleting and then recreating my MySql User worked for me.

like image 115
Thomas Dorner Avatar answered May 22 '26 15:05

Thomas Dorner


This is an old question. I found that in C#, adding "sslMode=REQUIRED" to the connection string solved my problem. You can probably also try "sslMode=PREFERRED"

Hope that helps someone with this problem out.

like image 45
Wallace B. McClure Avatar answered May 22 '26 17:05

Wallace B. McClure



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!