Monday 18 June 2018

Can't connect to MSSQL server

Hi,So I'm trying to connect to a mssql database with Knex but I get this error:"Thu, 14 Jun 2018 16:21:22 GMT tedious deprecated The default value for `options.encrypt` will change from `false` to `true`. Please pass `false` explicitly if you want to retain current behaviour. at node_modules\mssql\lib\tedious.js:212:23 Unhandled rejection ConnectionError: Failed to connect to 151.80.119.227,14831:1433 - getaddrinfo ENOTFOUND 151.80.119.227,14831 at Connection.tedious.once.err (C:\Users\mw\Documents\TestServer\node_modules\mssql\lib\tedious.js:216:17) at Object.onceWrapper (events.js:315:30) at emitOne (events.js:116:13) at Connection.emit (events.js:211:7) at Connection.socketError (C:\Users\mw\Documents\TestServer\node_modules\tedious \lib\connection.js:1004:14) at C:\Users\mw\Documents\TestServer\node_modules\tedious/lib\connection.js:869:25 at GetAddrInfoReqWrap.callback (C:\Users\mw\Documents\TestServer\node_modules\tedious lib\connector.js:69:18) at GetAddrInfoReqWrap.onlookupall [as oncomplete] (dns.js:104:17) This is my Knex variable:var knex = require('knex')({ client: 'mssql', connection: { host : '151.80.119.227,14831', user : '****', password : '****', database : '*****' } }); Am I doing something wrong?

Submitted June 18, 2018 at 05:46PM by Madfishermansdog-

No comments:

Post a Comment