aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 1479
    
  11

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: 1479
    
  11

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connect to DB in Anthor PC
 
Similar Threads
Applet and Database
java.sql.SQLException: ORA-00600 - Anyone?
Can I use jdbc:odbc to access MS Access database remotely?
Struts: DB Connection
Problem with connecting to database