Connect to MySQL and set sql2cvs connection to it

This commit is contained in:
danbulant 2019-09-28 15:20:48 +02:00
parent c6d720b8d1
commit 2dc1ac0e7a

View file

@ -87,3 +87,15 @@ var con = mysql.createConnection({
user: config.username,
password: config.password
});
con.connect(function(err) {
if (err){
console.log("\x1b[31m");
console.log(err + "");
console.log("\x1b[0m");
process.exit(1);
}
log("MySQL Connected!");
});
s2c.setConnection(con);