File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "mysql network from home" Watch "mysql network from home" New topic

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

Joined: Jan 10, 2002
Posts: 63866

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] [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
and meanwhile ifconfig tells me my address is

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 one (that took 1.287 ms per packet).

Some Im assuming this implies that is simply the ip of my airport extreme base station, whereas 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 ?
I agree. Here's the link:
subject: mysql network from home
jQuery in Action, 3rd edition