question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting to Amazon Redshift

See original GitHub issue

I’m trying to connect to Amazon Redshift using Node.js from an EC2 instance. I can connect using psql

psql -h {host} -U {username} -d {database} -p 5439

But not this library, it times out.

var client = new pg.Client({
            user: {username},
            database: {database},
            password: {password},
            port: 5432,
            host: {host}
});

I also tried a connection string

postgres://{username}:{password}@{host}:5432/{database}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
awm33commented, Nov 25, 2014

OH wow yes, thanks, well that’s embrassing

0reactions
awm33commented, Feb 13, 2017

@RakeshKulangara I messed up the port in the connection info. Make sure you are using the correct port. Redshift defaults to 5439, which is different than postgres.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connecting to Amazon Redshift
To connect to Amazon Redshift clusters, from the Clusters page, expand Connect to Amazon Redshift clusters and do one of the following:.
Read more >
Connecting to an Amazon Redshift cluster using SQL client tools
You can connect to Amazon Redshift clusters from SQL client tools over Java Database Connectivity (JDBC), Python, and Open Database Connectivity (ODBC)  ......
Read more >
Step 2: Connect to Your Amazon Redshift Cluster
Open the Amazon Redshift console at https://console.aws.amazon.com/redshift/ . · In the navigation pane, choose Clusters. · Choose the cluster name to open the ......
Read more >
Configuring connections in Amazon Redshift
To connect to your cluster with your SQL client tool, you need the cluster connection string. You can find the cluster connection string...
Read more >
Connecting to a database - Amazon Redshift
In the cluster details page, from the Databases tab, in the Databases or Datashare objects section, choose Connect to database to view database...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found