Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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 vs code

A possible workaround is to alter the type of user account to use the old authentication plugin:

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

Or create a different one that uses that same plugin:

CREATE USER 'foo'@'localhost' IDENTIFIED WITH mysql_native_password BY 'bar';
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 :: sql first 
Sql :: mysql set last_insert_id 
Sql :: sql select where more than one record exists 
Sql :: select where duplicate mysql 
Sql :: oracle pagination query offset 
Sql :: SQL Auto Increment Primary Key - PostgreSQL 
Sql :: mysql ip address 
Sql :: sql foreign key 
Sql :: zsh-syntax-highlighting zsh-autosuggestions 
Sql :: default constraint in ms sql 
Sql :: mysql failed to login as root@localhost 
Sql :: get first monday of month sql 
Sql :: phone no data type in sql server 
Sql :: mysql delete duplicate rows but keep one 
Sql :: restore database postgresql 
Sql :: if null mysql 
Sql :: sql server convert date to weekday 
Sql :: how to find the number of rows updated in oracle pl/sql 
Sql :: restore backup to new database sql server 
Sql :: constraints to columns SQL 
Sql :: rename table column name in mysql 
Sql :: mysql if condition 
Sql :: MySQL INSERT IGNORE Statement 
Sql :: sql inner join with where clause 
Sql :: copy data from one table to another mysql 
Sql :: mysql order by two columns priority 
Sql :: median mysql 
Sql :: Index a database column sql 
Sql :: FIND AVERAGE SALARY EARNER IN SQL 
Sql :: create table as select * from table mssql 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =