Open
Description
Yesterday I upgraded my ubuntu distribution an MySql Server was updated too.
But when I connect I get this error
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
My connection code:
var mysql = require('mysql');
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'test_db',
// insecureAuth : true,
});
connection.query('SELECT * FROM users', function(err, rows, fields) {
if (err) throw err;
});
I tried to set insecureAuth: true
but no changes