Problems encountered when using mysql8, and how to solve them
environment
- osx 12.5.1
- mysql8.0.30
Public Key Retrieval is not allowed
db manager: DBeaver
- Right click your connection, choose “Edit Connection”
- On the “Connection settings” screen (main screen) click on “Edit Driver Settings”
- Click on “Connection properties”, (In recent versions it named “Driver properties”)
- Right click the “user properties” area and choose “Add new property”
- Add two properties: “useSSL”(false) and “allowPublicKeyRetrieval”(true)
Forget password
- Click system settings
- On the “system settings” panel, Click on the MySQL icon below
- Click ‘Initailize Database’ button
- Then enter a new password, and select a type of the password encryption
- Restart the MySQL
reference
Problems encountered when using mysql8, and how to solve them
https://blog.puresai.com/2022/10/31/460/