formulahendry / vscode-mysql

MySQL management tool for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-mysql
MIT License
218 stars 59 forks source link

Error: ER_NOT_SUPPORTED_ AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client #193

Closed z0z0r4 closed 1 year ago

z0z0r4 commented 1 year ago

Mysql 8.0 login with root Any fix this? https://github.com/formulahendry/vscode-mysql/issues/99

burguitoscat commented 1 year ago

Type in MySQL console: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; when 'root' is your user, 'localhost' is your server name and 'password' is your password

tobisupreme commented 1 year ago

This resolves the issue on my machine. Thank you @burguitoscat!

FrankyYanFuzhang commented 1 year ago

Type in MySQL console: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; when 'root' is your user, 'localhost' is your server name and 'password' is your password

Work on my machine, thanks a lot!

emheyarssi commented 1 year ago

Type in MySQL console: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; when 'root' is your user, 'localhost' is your server name and 'password' is your password

This is very discouraged on production servers.

aliyuthman commented 1 year ago

While MYSQL Server supported Standard (mysql_native_password), caching_sha2_password, and SHA256. It is more secure to use a more recommended authentication type (caching_sha2_password or SHA256) than using the Standard (using SHA-1 hashing algorithm) which is not recommended.