Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a problem with displaying my databse structure through Intellij's Data Sources and Drivers page. I can connect to my database which is hosted on a redhat server through using application.properties of my spring project:

spring.datasource.url=jdbc:postgresql://192.168.0.38:5432/cms_database

which works fine. Although, whenever I try to use Intellij's Data Sources and Drivers page I get an Error Message:

[3D000] FATAL: database "cms_database" does not exist.

I can test to connect to database "postgres" which returns a Connection:

DBMS: PostgreSQL (ver. 13.0) Case sensitivity: plain=lower, delimited=exact Driver: PostgreSQL JDBC Driver (ver. 42.2.5, JDBC4.2) Ping: 16 ms SSL: no

Any help would be appreciated. If you need any extra info I would be happy to post!

question from:https://stackoverflow.com/questions/65646647/cannot-connect-to-database-through-intellijs-data-sources-and-drivers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
163 views
Welcome To Ask or Share your Answers For Others

1 Answer

Try to connect with settings from this example

enter image description here

I think you will set hostname wrongly


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...