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

18 lines
349 B
JavaScript

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