File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connect to DB in Anthor PC

 
Ahmed Elemam
Greenhorn
Posts: 8
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 2358
31
Linux Oracle Postgres Database Python Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the IP address of the other PC when you define your database connection parameters.
 
Ahmed Elemam
Greenhorn
Posts: 8
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i try the IP address but it dosnt work
 
chris webster
Bartender
Pie
Posts: 2358
31
Linux Oracle Postgres Database Python Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i ll try it thnx
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic