# MySQL 8.4 Connector/J Public Key Retrieval is not allowed allowPublicKeyRetrieval official documentation

Status: search-necessary
Product: MySQL 8.4
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/mysql-connector-j-public-key-retrieval-is-not-allowed-after-8-4-upgrade
Machine JSON: https://gitdocs.org/api/fixes/mysql-connector-j-public-key-retrieval-is-not-allowed-after-8-4-upgrade.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.

## Fix

```
Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- MySQL 8.4 Connector/J Public Key Retrieval is not allowed allowPublicKeyRetrieval official documentation
- site:dev.mysql.com/doc/connector-j/en allowPublicKeyRetrieval Connector/J
- MySQL Connector/J allowPublicKeyRetrieval property documentation
- "allowPublicKeyRetrieval" "Connector/J" "dev.mysql.com"
- https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
- site:dev.mysql.com/doc/refman/8.4 mysql_native_password disabled by default 8.4
- https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html
- 'RSA' in https://dev.mysql.com/doc/refman/8.4/en/caching-sha2-pluggable-authentication.html

## Sources

- MySQL 8.4.0 release notes: https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-0.html
- Official reference opened by Codex: https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
- Official reference opened by Codex: https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html
