I have setup a MySQL database. When I try to access it through my Node JS server, I am getting the error
\"ER_NOT_SUPPORTED_AUTH_MODE: Client does no
in order to overcome this error use the following code:
var connectionString = 'mysql://*root:*password@*localhost/*database?charset=utf8_general_ci&timezone=-0700';
var connection= mysql.createConnection(connectionString);
but make sure that you changed the * marks in the connectionString based on your setup.