• 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: 5856
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!