Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mysql = require("mysql")
- var con = mysql.createConnection({
- host: "185.143.175.43",
- port: "13306",
- user: "readonly",
- password: "ro12345",
- database: "test_task"
- })
- con.connect(function (err) {
- if (err) throw err
- console.log("DB connected")
- })
- module.exports = con
Add Comment
Please, Sign In to add comment