Erreur MySQL: le plugin d'Authentification 'caching_sha2_password' ne peut pas être chargé

Je viens d'installer MySQL Ver 14.14 Distrib 5.7.22 avec Homebrew sur mon mac os v10.13.4.
J'ai exécuté la commande:
brew install mysql

Après la fin de l'installation, comme indiqué par Homebrew, j'ai exécuté la commande:
mysql_secure_installation
et a renvoyé l'erreur: Error: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found

J'ai essayé un peu l'évolution des choses comme default_authentication_plugin à mysql_native_password dans le mon.cnf de fichier, mais ça en jette toujours la même erreur.

Ensuite, j'ai essayé de courir:
mysql_upgrade -u root
et j'ai été projeté la même erreur à nouveau mysql_upgrade: Got error: 2059: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found while connecting to the MySQL server
Upgrade process encountered error and will not continue.

Toute aide est appréciée.

Cette question est peut-être mieux posée sur dba.stackexchange.com

OriginalL'auteur Faheem Hassan Zunjani | 2018-04-20