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
Raw Normal View History

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