Authentication plugin 'caching_sha2_password' cannot be loaded

Aman Aggarwal picture Aman Aggarwal · Mar 9, 2018 · Viewed 624.4k times · Source

I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error:

Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found

I have tried with other client tool as well.

Any solution for this?

Answer

Santhosh Sivan picture Santhosh Sivan · Apr 22, 2018

Note: For MAC OS

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

Image description