Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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