wood burning stoves 2.0*
The moose likes JDBC and the fly likes mysql network from home Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "mysql network from home" Watch "mysql network from home" New topic
Author

mysql network from home

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi guys. I have two macs, one is a laptop with mysql, the other is a mac mini.

I have mysql installed and running fine on the laptop, and a JDBC application running on the mini that needs to access the database in the laptop.

How can I connect from my mac mini to my mysql server on the laptop (I have a wireless airport base station, and the internet connection is working fine on both machines...the problem is how to get the two devices to talk directly through each other) ?

I guess the JDBC part is minor - once I can connect, Im sure the JDBC app will work just fine.
please help im totally lost on this one and desperate as this project is for work !!
[ May 18, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Set up the JDBC URL in the app to reference the server. You can use the IP assigned by DHCP ro perhaps the Bonjour name of the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Thanks for the reply.

Im a little confused here :

According to airport utility , my IP address is 76.28.6.229
and meanwhile ifconfig tells me my address is 10.0.1.6

Ive tried pinging both from the machine Im trying to use as client, and pinging th 76.28... one was alot faster (.474) ms then pinging the 10.0.1.6 one (that took 1.287 ms per packet).

Some Im assuming this implies that 76.38.6.229 is simply the ip of my airport extreme base station, whereas 10.0.1.6 is the ip of my macbook which has the mysql server on it.

In any case, Bonjour doesnt seem to have a mysql service, and even if it did, Id rather do this using the IP address since thats universal.


Anyways Im still totally lost. Please let me know what you think. Ive posted the output of ifconfig below.


[ May 19, 2008: Message edited by: Ulf Dittmer ]
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Still Completely lost on this one. Is it possible to wirelessly access mysql through airport ?
 
 
subject: mysql network from home