vscode-mysql icon indicating copy to clipboard operation
vscode-mysql copied to clipboard

ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Open zhangzheng0529 opened this issue 6 years ago • 4 comments

May any tech savvy tell me why this happens in vscode? I can use the same configuration without any problem when working with mySQL.

zhangzheng0529 avatar Apr 08 '19 09:04 zhangzheng0529

Connecting with a user having "Authentication Type" set to Standard worked for me. I guess you need to provide a path to SSL certs if you try to connect using root user.

rabinage avatar Apr 17 '19 08:04 rabinage

If you're trying connect to a 8.X version of MySql, with a user using the newly introduced 8.X caching_sha2_password default auth plugin method, I think you're running into the issue addressed here in this SO question. This VS plugin has a dependency on the mysql npm package and as far as I know the PR/issue referenced in the SO link has not yet been resolved.

ghost avatar Apr 17 '19 09:04 ghost

@calexa22 Seems like it's not resolved even now, 3 years later.

And out-of-the-box, this plugin just doesn't work on the mainstream Ubuntu 20.04 LTS release. I feel some Windows influence here...

This plugin is used by 800k people. Each one of them has to weaken their security by disabling caching_sha2_password because contributors didn't have a chance to update the extension. We're bad contributors then...

OnkelTem avatar Feb 18 '22 14:02 OnkelTem

hmmmm, any one could fix this problems?3 years later...

z0z0r4 avatar Sep 10 '22 00:09 z0z0r4