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\
For me the problem was having inside the SQL connection object pass: 'mypassword' instead of password: 'mypassword'.
pass: 'mypassword'
password: 'mypassword'