This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql2/examples/ssl/rds-ssl.js

17 lines
369 B
JavaScript
Raw Permalink Normal View History

2014-09-24 17:56:53 -04:00
var fs = require('fs');
var mysql = require('../../index.js');
var conn = mysql.createConnection({
user: process.env.USER,
password: process.env.PASSWORD,
database: process.env.DB,
host: process.env.HOST,
port: 3306,
ssl: 'Amazon RDS'
});
conn.query('show status like \'Ssl_cipher\'', function(err, res) {
console.log(err, res);
conn.end();
});