17 lines
302 B
JavaScript
17 lines
302 B
JavaScript
![]() |
var mysql = require('mysql');
|
||
|
|
||
|
|
||
|
var connection = mysql.createConnection({
|
||
|
host: 'localhost',
|
||
|
port: 3306,
|
||
|
user: 'root',
|
||
|
password: 'example',
|
||
|
database: 'BBLB_DNS',
|
||
|
insecureAuth: true
|
||
|
})
|
||
|
|
||
|
connection.connect(function (err) {
|
||
|
if (err) throw err;
|
||
|
});
|
||
|
|
||
|
module.exports = connection;
|