Tag

caching_sha2_password

0 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 21, 2022 · Databases

Understanding MySQL 8.0 caching_sha2_password Authentication Errors and Solutions

This article explains why the MySQL 8.0 client may report the caching_sha2_password authentication error requiring a secure connection, describes the plugin’s design, RSA and SSL mechanisms, cache behavior, and provides practical commands and replication settings to resolve the issue.

MySQLRSASSL
0 likes · 8 min read
Understanding MySQL 8.0 caching_sha2_password Authentication Errors and Solutions
DeWu Technology
DeWu Technology
Oct 1, 2021 · Databases

MySQL 8.0 New Authentication Plugin: caching_sha2_password

MySQL 8.0 replaces the default mysql_native_password with the caching_sha2_password plugin, which stores a 70‑byte salted SHA‑256 hash with configurable rounds, caches SHA256(password) for fast logins, and falls back to RSA‑encrypted full verification on insecure connections, supporting user creation, replication and key management.

DatabaseMySQLRSA
0 likes · 14 min read
MySQL 8.0 New Authentication Plugin: caching_sha2_password
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 8, 2021 · Databases

Resolving Intermittent "Public Key Retrieval is not allowed" Errors in Java MySQL 8.0 JDBC Connections

This article explains why Java applications occasionally encounter the "Public Key Retrieval is not allowed" error when connecting to MySQL 8.0, analyzes the role of caching_sha2_password and user authentication cache, and provides practical solutions such as specifying the RSA public key, enabling AllowPublicKeyRetrieval=True, or switching to mysql_native_password.

DatabaseConnectionJDBCMySQL
0 likes · 5 min read
Resolving Intermittent "Public Key Retrieval is not allowed" Errors in Java MySQL 8.0 JDBC Connections
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 17, 2020 · Databases

Understanding MySQL 8.0 caching_sha2_password Authentication and RSA Key Usage

The article explains how MySQL 8.0's caching_sha2_password authentication plugin works, its caching mechanism, advantages, limitations, and how to generate, view, and use RSA key pairs for secure password exchange in encrypted or RSA‑based non‑encrypted connections.

MySQLRSAReplication
0 likes · 6 min read
Understanding MySQL 8.0 caching_sha2_password Authentication and RSA Key Usage