0

I am using Rubymine to connect to an Heroku hosted Postgres DB.

I was able to connect a few weeks ago, but now I am getting this error whenever I try to connect:

'The specified user/password combination is rejected: FATAL: password authentication failed for user "X3v...'

My Heroku DB URL is:

postgres://<password>:X3vuEswiMHjkADaeI5RQvY4WI4@ec2-23-21-170-57.compute-1.amazonaws.com:5432/de8u1hq5ipli85

I am using JDBC to connect. In the "Data Source Properties" dialog box the (partial) URL is:

jdbc:postgresql://ec2-23-21-170-57.compute-1.amazonaws.com:5432/

And I have added my username and password to the User and Password fields.

In the advanced tab I have added

ssl = true
sslfactory = org.postgresql.ssl.NonValidatingFactory

I'm not sure what I have missed.

2 Answers 2

1

I understand this is not a solution, but it's works for me:

  1. Take away the current connections to databases.
  2. Driver Rollback and its settings to default.
  3. sudo service postgresql restart
  4. Now again connect.

I guess, but not sure, system uses same driver for the various editors (Idea, DataGrip, pgadmin3). It's setting a bottleneck.

If you have better solution, please write it here.

Sign up to request clarification or add additional context in comments.

Comments

0

I'm not sure if this is still relevant, but you misinterpreted URL

In URL schema first gous user, then password <protocol>://[<user>[:<password]@]<host>[:<port>]/... so you mixed username with password

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.