Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

[2021-10-05T13:43:48.961Z] error Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Execute the following query in MYSQL Workbench

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

Where root as your user localhost as your URL and password as your password

Then run this query to refresh privileges:

flush privileges;

Try connecting using node after you do so.

If that doesn't work, try it without @'localhost' part.
 
PREVIOUS NEXT
Tagged: #error #Client #support #authentication #protocol #requested #upgrading #MySQL #client
ADD COMMENT
Topic
Name
3+2 =