MySQL 8.0.11 error connect to caching_sha2_password the specified module could not be found

匿名 (未验证) 提交于 2019-12-03 02:33:02

问题:

I've tried to connect to the latest MySQL server 8.0.11 from MySQL workbench, but the error keeps popping up: Cannot connect to MySQL server, authentication plugin: caching_sha2_password: the specified module could not be found.

I tried looking at MySQL server installation videos online and replicated every step accurately, but the error persists.

Any help is greatly appreciated.

回答1:

See:

Changes in MySQL Workbench 8.0.11 (2018-04-19, Release Candidate)

...

  • MySQL Workbench now supports the caching_sha2_password authentication plugin introduced in MySQL 8.0 (see Caching SHA-2 Pluggable Authentication). A user account can be reset to use the other available authentication types for making a connection.

...



回答2:

I had the following solution: change my.ini in a [mysqld] section like this:

#default_authentication_plugin=caching_sha2_password  (comment line!) default_authentication_plugin=mysql_native_password   (new line) 

Connect to your MySQL under root in a command line client and execute:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxx'; 

Where xxx is your current password.



回答3:

After poking around I actually found a way to solve it:

During the configuration, when you reach the authentication method choose the Legacy Authentication Method.

It worked for me~!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!