Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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

// Run this line to unistall mysql and install mysql2
npm uninstall mysql && npm install mysql2

// Switch the name of your import in your node file
import mysql2 from 'mysql2'

// mysql2 uses the updated form of authentication
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Client #support #authentication #protocol #requested #upgrading #MySQL #client
ADD COMMENT
Topic
Name
5+6 =