Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

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

npm install mysql2
Comment

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

import mysql from "mysql2";
Comment

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

const mysql = require("mysql2")
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle sql first day of month 
Sql :: add column table sql default value 
Sql :: mysql cannot delete or update a parent row 
Sql :: how to get last row of table in sql 
Sql :: convert sqlite table to pandas dataframe 
Sql :: how to check all scheduled jobs in oracle 
Sql :: how to add a index to live table mysql 
Sql :: mysql count words 
Sql :: file /etc/init.d/mysql not exists 
Sql :: oracle wait 
Sql :: psql lst trigger 
Sql :: stop psql server windows 
Sql :: mysql drop primary key 
Sql :: sql decrement value by 1 if not null or zero 
Sql :: sql find missing values between two tables 
Sql :: sql server 2012 query history 
Sql :: set statiscis on in ssms 
Sql :: sqlite foreign key 
Sql :: oracle synonym 
Sql :: delete entries in postgresql 
Sql :: mysql reset auto increment 
Sql :: python how to connect to sql server 
Sql :: update substring in mysql 
Sql :: sql join exists 
Sql :: oracle current timestamp insert statement 
Sql :: how to delete a column in sql 
Sql :: how to move a columns location in mysql 
Sql :: how to delete table sqlite 
Sql :: how to find the most occuring in SQL 
Sql :: varchar plsql 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =