I am attempting to connect to mySQL through a NodeJS file, but I receive the following error:
{ Error: ER_ACCESS_DENIED_ERROR: Access denied for user \'root\
I had the same error from nodejs script, so i removed password parameter and now it magically works fine
var mysql = require('mysql'); var connection = mysql.createConnection({ host: 'localhost', user: 'root' });