1
0
Fork 0
mirror of https://gitlab.com/nekoya/web.git synced 2025-03-21 22:39:01 +01:00

Added database connection to ruka.moe.team

This commit is contained in:
Matthew Patrick 2021-11-15 12:36:33 +07:00
parent 3843f3342a
commit d3f9240ba4

16
db.js Normal file
View file

@ -0,0 +1,16 @@
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 Connected !!!");
} else {
console.log("There was a problem connecting to the database ....");
}
});
module.exports = db_connect;