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:
parent
3843f3342a
commit
d3f9240ba4
1 changed files with 16 additions and 0 deletions
16
db.js
Normal file
16
db.js
Normal 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;
|
Loading…
Add table
Reference in a new issue