errno: 1251, sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client
问题 I'm creating the simple api project in nodejs. For that i have installed mySql workbench with version 8.0.11. I have created config file, dbConnection.js file and in the dbconnection.js file i have written the following code : var mysql = require('mysql'); var path = require('path'); var config = require(path.resolve('./', 'config')) var connection = mysql.createConnection({ host: config.databaseHost, user: config.databaseUser, password: config.databasePassword, database: config