Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

349
Views
How to connect to a postgreSQL database stored on a server and request this database? Node.js

I am working to develop a server with Node.js to request a postgreSQL database. My problem is, that I can't connect (with my local computer, using wifi connection, not ethernet) to this server, and also to the postgreSQL.

I have an username and a password to connect to the server, and also an another username and password to connect the database.

How can to connect both of those, and get the information I want from the postgreSQL database? Can I connect to this server with command bash like ssh but in node.js?

I did something like this:

var ssh = new SSH({
    host: 'hostname',
    user: 'user',
    pass: 'password'
});

or something like this:

var connectionString = 'postgres://user:password@database:port';

I have another problem, my teacher give me a password containing a @, and I think this will make some problems when I have to put my password:

postgres://user:pass**@**word@database:port

How to bypass this password problem?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

you need to pass ip address of machine where database resides in place of hostname.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!