wood burning stoves 2.0
The moose likes JDBC and Relational Databases and the fly likes Connect to DB in Anthor PC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Connect to DB in Anthor PC" Watch "Connect to DB in Anthor PC" New topic
Author

Connect to DB in Anthor PC

Ahmed Elemam
Greenhorn

Joined: Oct 01, 2010
Posts: 8

Hey ...
I have a question ..
i WANT TO CONNECT TO DB (POSTGRES) IN ANOTHER PC USING JDBC ???
how can i do this connection
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1945
    
  19

Use the IP address of the other PC when you define your database connection parameters.


No more Blub for me, thank you, Vicar.
Ahmed Elemam
Greenhorn

Joined: Oct 01, 2010
Posts: 8

i try the IP address but it dosnt work
chris webster
Bartender

Joined: Mar 01, 2009
Posts: 1945
    
  19

Ahmed Elemam wrote:i try the IP address but it dosnt work


If you Google "jdbc connection postgresql" here is the first link that comes up:

http://jdbc.postgresql.org/documentation/80/connect.html

Ahmed Elemam
Greenhorn

Joined: Oct 01, 2010
Posts: 8

i ll try it thnx
 
Consider Paul's rocket mass heater.
 
subject: Connect to DB in Anthor PC