mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-14 02:16:19 +01:00
16 lines
393 B
JavaScript
16 lines
393 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 Connected !!!");
|
|
} else {
|
|
console.log("There was a problem connecting to the database ....");
|
|
}
|
|
});
|
|
|
|
module.exports = db_connect;
|