It is currently 22 April 2025, 20:57 Advanced search

Cloud Connector MSSQL not on Port 1433

Domande e risposte su come utilizzare Instant Developer Cloud al meglio

Cloud Connector MSSQL not on Port 1433

Postby Jaymer » 26 February 2020, 20:50

With all the examples in example-json, nothing addresses a Port #.
In nodeJS, some times the MSSQL connectors use a distinct "Port: nnnn" line, other times you can add to the end of the IP.

In my MS SQL connector, when I add my port, lets say 20000 after the IP, the IDE gets an error when trying to import schema.
Cannot connect to myip:20000:1433
It doesn't realize 20000 was the port, so tries to use the default port.
Yet I see no place to specify a Port # in the IDE, so this must be entered in config.json?

Confused

----

Con tutti gli esempi in esempio-json, nulla indirizza un numero di porta.
In nodeJS, alcune volte i connettori MSSQL usano una linea "Port: nnnn" distinta, altre volte è possibile aggiungere alla fine dell'IP.

Nel mio connettore MS SQL, quando aggiungo la mia porta, diciamo 20000 dopo l'IP, l'IDE riceve un errore quando provo a importare lo schema.
Impossibile connettersi a myip: 20000: 1433
Non si rende conto che 20000 era la porta, quindi tenta di utilizzare la porta predefinita.
Tuttavia non vedo alcun posto dove specificare un numero di porta nell'IDE, quindi questo deve essere inserito in config.json?

Confuso
Jaymer
 
Posts: 3
Joined: 26 February 2020, 20:26

Re: Cloud Connector MSSQL not on Port 1433

Postby Jaymer » 27 February 2020, 21:07

Solution is to add a line to config.json

Example:

Code: Select all
{
"name": "OEM-test2",
"class": "SQLServer",
"APIKey": "53812338-f920-4627-b1ea-bc0856a9bc8b",         
"connectionOptions": {
   "user": "inde-test",
   "password": "BIGtest",
   "server": "localhost",
   "database": "OEM",
   "port": 20000            <<--- New
   }
}
Jaymer
 
Posts: 3
Joined: 26 February 2020, 20:26


Return to Tips & Tricks - Cloud

Who is online

Users browsing this forum: No registered users and 7 guests

cron