Peter Morris
Peter Morris

Reputation: 23224

MySql: Authentication method 'caching_sha2_password' failed

Trying to connect to MySql from .net started giving me the following error:

Authentication method 'caching_sha2_password' failed. Either use a secure connection, specify the server's RSA public key with ServerRSAPublicKeyFile, or set AllowPublicKeyRetrieval=True

Upvotes: 2

Views: 808

Answers (1)

Peter Morris
Peter Morris

Reputation: 23224

For some weird reason, the solution is to sign into the server using MySql Workbench, and then the server will start accepting connections again.

Upvotes: 5

Related Questions