Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How would I connect mysql database in lan using jdbc?

 
arun singhal
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that how to connect mysql database in my computer..
But I want to access data from different computer in lan...
What are requirement for this???
Please give me solution for this..
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of connecting to localhost and the corresponding port connect to the network IP of the sql server and the corresponding port.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you also have to grant your MySQL user accounts the rights to log into the database from remote systems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic