How to connect PostgreSQL in SqlDeveloper

How to connect PostgreSQL in SqlDeveloper

1. download PostgreSQL JDBC 4.1 driver (https://jdbc.postgresql.org/download.html).

postgresql-42.2.6.jar

2. In the SQL Developer Preferences Menu, navigate to Database » Third Party JDBC Drivers. Click Add Entry , go to the directory and choose the driver.

How to connect PostgreSQL in SqlDeveloper_第1张图片

 

3.When you add a new connection, the bottom half of the dialog should now have Oracle and PostgreSQL tabs.

How to connect PostgreSQL in SqlDeveloper_第2张图片

 

After install JDBC driver,

I fill in the Username/Pwd and Hostname/Port and then select Choose Database - I get:

Failure -FATAL: database "user1" does not exist

 

If you have a different user and db name, SQLDevelopper works with this workarround:

username: testuser
password: mypass
Host: 127.0.0.1:1234/testdb?
Port: 1234

Don't forget the "?" character. Then Select Database becomes available and connection works.

你可能感兴趣的:(PostgreSQL)