I am new to using node.js and mysql, I have a simple script that uses node to log me into a mysql server.
var mysql = require('mysql');
var connection = mysql.createConnection({
  host     : 'localhost',
  user     : 'root',
  password : ''
});
connection.connect(function(err) 
{
  if (!err)
    console.log('Connected');
  else
    console.log('Error connection');
    console.log(err);
});
When my xampp mysql server is running it returns connected, however when xampp is turned off and the mysql server notifier is running it returns this error.
"code: 'ER_NOT_SUPPORTED_AUTH_MODE', errno: 1251, sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client', sqlState: '08004', fatal: true }" I used the installer for windows found on the mysql site. I am running windows 10, and it is installed directly into the C drive of my computer.
 
     
     
     
    