title: Consider upgrading MySQL client at Handshake.Sequence._packetToError
body: <p>I am learning expressjs and connecting to MySQL database, but getting below error.</p>
  
  <pre><code>var express = require('express');
  var path = require('path');
  var mysql = require('mysql');
  var app = express();
  
  var connection = mysql.createConnection({
    host     : 'Damodars-MacBook-pro.local',
    user     : 'monty',
    password : 'some_pass',
    port     : 3306,
  });
  
  connection.query('USE angularapp');
  // Routing
  // Configure port
  app.set('port', 3006);
  app.set('views', path.join(__dirname, 'views'));
  app.set('view engine', 'jade');
  app.use(express.static(path.join(__dirname, 'public')));
  </code></pre>
  
  <p>Getting error as:</p>
  
  <blockquote>
    <p>Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support
    authentication protocol requested by server; consider upgrading MySQL
    client
        at Handshake.Sequence._packetToError</p>
  </blockquote>