简体   繁体   English

PostgreSQL与SQL Developer问题

[英]PostgreSQL with SQL Developer Issue

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

If you have a different user and db name, SQLDevelopper 4.1 works with this workarround: 如果您有不同的用户和数据库名称,SQLDevelopper 4.1将使用此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 感谢Piperopoulos在这篇文章中帮助过我: Oracle SQL Developer和PostgreSQL

Note that schema and tables are not listed by SQLDevelopper. 请注意,SQLDevelopper不会列出架构和表。 You can use this request to list them manually: 您可以使用此请求手动列出它们:

select * from pg_catalog.pg_tables;

这是一个注释 - 在命令行中尝试psql -u user1来检查用户是否存在

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM