web-dev-qa-db-fra.com

NodeJS MySQL Client ne supporte pas le protocole d'authentification

Lorsque j'essaie de me connecter à MySQL 8.0, j'obtiens cette erreur. Comment puis-je réparer cela ? 

code: 'ER_NOT_SUPPORTED_AUTH_MODE',
errno: 1251,
sqlMessage: 'Client does not support authentication protocol requested by server; 
consider upgrading MySQL client',
sqlState: '08004',
fatal: true
1
Rupesh

Essayez de changer le mot de passe comme ci-dessous:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'your new password'; 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your new password';
4
TIAGO SILVA