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 un mysql && npm i mysql2
# then switch the name of your import in your node file
#const mysql = require("mysql2");
#mysql2 uses the updated form of authentication
# To learn more read this stackoverflow answer: https://stackoverflow.com/a/56509065/13776398
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Client #support #authentication #protocol #requested #upgrading #MySQL #client
ADD COMMENT
Topic
Name
4+5 =