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\
Try adding a port field:
var connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'password', port: 3307 });