Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 8.4.0 error prompt Plugin' mysqlnotative_password 'is not loaded #1925

Open
talksmallice opened this issue May 23, 2024 · 4 comments
Open

Comments

@talksmallice
Copy link

Starting from MySQL 8.4.0, the default authentication plugin is' caching_sha2_password ', while the' mysql_cative_password 'authentication plugin is no longer enabled by default. How can I use the' caching_sha2_password 'plugin to connect now?

@tidusjar
Copy link

Has there been any progress on this?

@moemura
Copy link

moemura commented Jul 17, 2024

execute SQL like this
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'passwd';
Or turn on mysql_native_password

@pealmeid
Copy link

Any progress on this? On MySql server 8.4 mysql_native_password is deprecated and on 9.0 it is removed. Please provide guidance on how to proceed considering these changes.

@lauxjpn lauxjpn self-assigned this Dec 17, 2024
@lauxjpn
Copy link
Collaborator

lauxjpn commented Dec 17, 2024

I am not really sure what the issue here is.

  • Are you getting an exception of some sort? If so, when? (Also post the exception with the full stack trace.)
  • Is this related to Pomelo? If so, please provide instructions/a minimal reproducible example for us.
  • Are you trying to configure the connection string? Take a look at the supported options.
  • You can find more information on the caching_sha2_password plugin in the official MySQL docs

So far, this sounds to me like you have your MySQL server (or user account) not configured correctly, in which case StackOverflow (and related sites) would be the place to ask others for help.

That being said, 8.4.1.2 Caching SHA-2 Pluggable Authentication states:

Important
To connect to the server using an account that authenticates with the caching_sha2_password plugin, you must use either a secure connection or an unencrypted connection that supports password exchange using an RSA key pair, as described later in this section. Either way, the caching_sha2_password plugin uses MySQL's encryption capabilities. See Section 8.3, “Using Encrypted Connections”.

So to properly connect, either make sure you are using an SSL/TLS connection (see the SslMode connection string option) or RSA password exchange key pair (see the ServerRSAPublicKeyFile and AllowPublicKeyRetrieval connection string options).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants