node-query/node_modules/mysql2/examples/ssl/rds-ssl.js

17 lines
369 B
JavaScript
Raw Normal View History

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();
});