I am using mysql and node.js. I am trying get a simple connection, but getting this weird error. the code i am using is this
var mysql = require('mysql');
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'password',
database: 'userlogin'
});
connection.connect();
and here is the error i am getting:
here is some details about the server: