I've pushed my application to cloudfoundry. However every time I connect to my postgresql/elephant sql I received this error
Driver org.postgresql.Driver claims to not accept JDBC URL jdbc:postgres://cwkqmdql:[email protected]:5432/cwkqmdql/
Is there anything I've missed?
There are a few issues with that URL and a latest PSQL driver may complain.
jdbc:postgres:
should be replaced with jdbc:postgresql:
jdbc:postgresql://<username>:<passwor>...
, user parameters instead: jdbc:postgresql://<host>:<port>/<dbname>?user=<username>&password=<password>
sslmode=require
parameterSo your URL should be:
jdbc:postgresql://@pellefant.db.elephantsql.com:5432/cwkqmdql?user=cwkqmdql&password=SsVqwdLxQObgaJAYu68O-8gTY1VmS9LX
or
jdbc:postgresql://@pellefant.db.elephantsql.com:5432/cwkqmdql?user=cwkqmdql&password=SsVqwdLxQObgaJAYu68O-8gTY1VmS9LX&sslmode=require
I hope that will help.