Where is the cache for the new default authentication plugin caching_sha2_password in MySQL 8 stored? I want to know for future reference how to clear it in case I ever run into any problems using it.

2 Answers 2


'when there exists a cached copy of the password hash in memory' (ref).

So its all in memory.


  • Open MySQL from System Preferences > Initialize Database >
  • Type your new password.
  • Choose 'Use legacy password'
  • Start the Server again.
  • Now connect the MySQL Workbench

Please read full Answer here

  • Is this an answer to how to clear the cache used by the caching_sha2_password plugin or how to gain access while dealing with the popular incompatibility issue with MySQL 8 and the caching_sha2_password plugin? Commented Sep 20, 2018 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.