This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes How would I connect mysql database in lan using jdbc? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How would I connect mysql database in lan using jdbc?" Watch "How would I connect mysql database in lan using jdbc?" New topic
Author

How would I connect mysql database in lan using jdbc?

arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
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

Joined: Feb 23, 2009
Posts: 1183
Instead of connecting to localhost and the corresponding port connect to the network IP of the sql server and the corresponding port.


JDBCSupport - An easy to use, light-weight JDBC framework -
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5852
    
    7

And you also have to grant your MySQL user accounts the rights to log into the database from remote systems.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How would I connect mysql database in lan using jdbc?
 
It's not a secret anymore!