GeeCON Prague 2014*
The moose likes JDBC 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


JavaRanch » Java Forums » Databases » JDBC
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: 1728
    
  14

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: 1728
    
  14

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
 
GeeCON Prague 2014
 
subject: Connect to DB in Anthor PC