Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express');
- var mysql = require('mysql')
- var app = express();
- var connection = mysql.createConnection({
- host: '149.xxx.xx.x',
- user: 'User',
- password: 'Password',
- database: 'DataBase',
- port: 1443,
- });
- connection.connect(
- function(error) {
- console.log(error.code); // 'ECONNREFUSED'
- console.log(error.fatal); // true
- console.log(error.sql);
- console.log(error.sqlMessage);
- }
- );
- ECONNRESET
- true
- undefined
- undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement