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/db/connect.js

17 lines
333 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,
});
con.connect(function(err) {
if (err) throw err;
console.log("Connected!");
});
exports.con = con;