JDBC连接创建的eclipse无法正常工作 [英] JDBC connection created ineclipse does not work as it should

查看:109
本文介绍了JDBC连接创建的eclipse无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个jdbc连接,该连接似乎显示了除公共模式中的表以外的所有其他模式(information_schema,pg_catalog,pg_toast_temp_1)中的所有表.有什么办法吗?

I created a jdbc connection which seems to show all the tables from all the other schemas ( information_schema, pg_catalog, pg_toast_temp_1 ) except for the tables in the public schema. Any solutions?

以前工作正常,我不知道我做错了什么,但现在我没有看到我应该使用的任何表.

Previously it worked i dont know what i did wrong but now i don't see any of the tables i should .

推荐答案

问题已解决:在eclipse中创建jdbc连接时,除其他事项外,您必须指定
a)数据库名称
b)连接网址
c)用户名
d)密码
我认为,如果您指定数据库名称,则不再需要在url中指定它.原来我错了. b)就我而言必须是jdbc:postgresql://localhost:5432/mydb.而且a)只是一个屏幕名称.我不知道,并且我的URL中没有数据库名称(即jdbc:postgresql://localhost:5432/). a)可以具有任何值

Problem solved: When you create a jdbc connection in eclipse you must specify, among other things
a) database name
b) connection url
c) username
d)password
I thought that if you specify the database name there's no more need to specify it in the url. Turns out i was wrong. b) in my case must be jdbc:postgresql://localhost:5432/mydb . And a) is just a SCREEN NAME. I didn;t know that and my url did not have the db name in it ( ie jdbc:postgresql://localhost:5432/ ) . a) can have whatever value

这篇关于JDBC连接创建的eclipse无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆