PostgreSQL with SQL Developer Issue

回眸只為那壹抹淺笑 提交于 2019-12-09 05:10:29

问题


I added my Third Party JDBC drivers for PostgreSQL, the tab shows up.

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

Failure -FATAL: database "user1" does not exist

Anyone else having this issue?

The JDBC driver I am using is postgresql-8.4-701.jdbc4.jar.


回答1:


If you have a different user and db name, SQLDevelopper 4.1 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.

Thanks to Piperopoulos who helped me in this post: Oracle SQL Developer and PostgreSQL

Note that schema and tables are not listed by SQLDevelopper. You can use this request to list them manually:

select * from pg_catalog.pg_tables;



回答2:


This is a comment- try psql -u user1 in command line to check whether user exist



来源:https://stackoverflow.com/questions/21191687/postgresql-with-sql-developer-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!