Handshake inactivity timeout error when connecting node v5.10.1. to aws mysql RDS
<p>Im having a really hard to time solving this issue.  When I try to connect node to aws's rds mysql database, I receive this error: </p>

<pre><code>{ [Error: Handshake inactivity timeout]
  code: 'PROTOCOL_SEQUENCE_TIMEOUT',
  fatal: true,
  timeout: 10000 }
</code></pre>

<p>Solutions online suggest updating to node v4.2.1 but I am on v5.10.1.
I have no problems when I connect node to my localhost mysql.</p>

<p>Here is my code: </p>

<pre><code>connectionpool = mysql.createPool({
        host     : 'dev-db.xxxxxx.us-west-2.rds.amazonaws.com',
        user     : 'xxxxx',
        password : 'xxxxx',
        database : 'decurate',

    });

app.get('/:table', function(req,res){
connectionpool.getConnection(function(err, connection) {
        if (err) {
            console.error('CONNECTION error: ',err);
            res.statusCode = 503;
              res.send({
                result: 'error',
                err:    err.code
            });
        } else {

           connection.query('SELECT * FROM user ORDER BY user_id DESC LIMIT 20', req.params.id, function(err, rows, fields) {
                if (err) {
                    console.error(err);
                    res.statusCode = 500;
                    res.send({
                        result: 'error',
                        err:    err.code
                    });
                }


                res.send({
                    result: 'success',
                    err:    '',
                    json:   rows
                });
                connection.release();
            });
        }
    });


});
</code></pre>

<p>Please advise. </p>

<p>Thanks! </p>