PostgreSQL 与 SQL Developer 问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21191687/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PostgreSQL with SQL Developer Issue
提问by JB11
I added my Third Party JDBC drivers for PostgreSQL, the tab shows up.
我为 PostgreSQL 添加了我的第三方 JDBC 驱动程序,选项卡出现了。
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
.
我使用的 JDBC 驱动程序是postgresql-8.4-701.jdbc4.jar
.
回答by Kloe2378231
If you have a different user and db name, SQLDevelopper 4.1 works with this workarround:
如果您有不同的用户名和数据库名,SQLDevelopper 4.1 可以使用此解决方法:
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
感谢 Piperopoulos 在这篇文章中帮助我:Oracle SQL Developer 和 PostgreSQL
Note that schema and tables are not listed by SQLDevelopper. You can use this request to list them manually:
请注意,SQLDevelopper 未列出模式和表。您可以使用此请求手动列出它们:
select * from pg_catalog.pg_tables;
回答by User123456
This is a comment- try psql -u user1 in command line to check whether user exist
这是一条注释——在命令行中尝试 psql -u user1 来检查用户是否存在