Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save navneet-kumar/1712a423a024be20ad858de33bcfb93a to your computer and use it in GitHub Desktop.

Select an option

Save navneet-kumar/1712a423a024be20ad858de33bcfb93a to your computer and use it in GitHub Desktop.
docker pull mysql:latest
docker run --name mySql -p3306:3306 -e MYSQL_ROOT_PASSWORD=Password12 -d mysql:latest
> Error : Public Key Retrieval is not allowed
1.Right click your connection, choose "Edit Connection"
2.On the "Connection settings" screen (main screen) click on "Edit Driver Settings"
3.Click on "Connection properties", (In recent versions it named "Driver properties")
4.Right click the "user properties" area and choose "Add new property"
5.Add two properties:
"useSSL":"false"
"allowPublicKeyRetrieval":"true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment