web/db.js
Matthew Patrick cd65ef15b8 Edited db.js
2021-11-15 15:36:33 +07:00

16 lines
396 B
JavaScript

var mysql = require("mysql");
var db_connect = mysql.createConnection({
host: "ruka.moe.team",
user: "admin_nekoya",
password: "Nekoya123.",
database: "admin_nekoya",
});
db_connect.connect(function (err) {
if (!err) {
console.log("Database is Connected !!!");
} else {
console.log("There was a problem connecting to the database ....");
}
});
module.exports = db_connect;