17 lines
369 B
JavaScript
17 lines
369 B
JavaScript
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();
|
|
});
|