This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/mysql.js

19 lines
384 B
JavaScript

const mysql = require('mysql');
const config = require('./config');
var con = mysql.createConnection({
host: "test-db.verdnatura.es",
database: "vn",
user: config.userDev,
password: config.passwordDev,
port: 3307,
});
exports.con
con.connect(function(err) {
if (err) {
console.error('Error connecting: ' + err.stack);
return;
}
console.log("Connected!");
});