Page 1 of 1

How to Get Xampp to use Existing MySQL...

PostPosted: 31. May 2007 16:47
by entropicsinkhole
Using Xampp 1.6.1

Hi, I've looked around the forum but none of the posts completely answer my question.

I am running an Hmail server which uses its own built in MySQL install. I would like Xampp to use this MySQL install instead of installing a second MySQL. Is it possible to do this?

Thanks

PostPosted: 01. June 2007 19:21
by Codesmith
Whichever server is running is the one that will be used.

So ....

Don't install XAMPP's MySQL as a service.
Don't start XAMPP's MySQL.
Don't auto start XAMPP's MySQL via the XAMPP's control panel.

Start your existing MySQL.

That simple :)

PostPosted: 01. June 2007 19:55
by entropicsinkhole
Thanks. I'll give it a go and see how it turns out.

PostPosted: 02. June 2007 17:46
by Codesmith
Also moving from one MySQL installation to another is usually as simple as replacing the data folder.

I have never had any problems moving to a newer version of MySQL in this fashion.

PostPosted: 04. June 2007 13:49
by entropicsinkhole
Well, it seems to be working... Although even though I specified xampp not to install MySQL it has a check mark in the MySQL SRV option in the Xampp Control Panel. But MySQL is not running and squirrelmail is working, so I guess it's using the right MySQL install. Thanks!

PostPosted: 04. June 2007 15:05
by Codesmith
XAMPP's control panel is merely looking for a service of the appropriate name.

It doesn't check the path associated with the service to see if it is actually associated with XAMPP or not.

So its detecting the other installation. If you try to start or stop it will send net start and net stop commands to the other installations service.

If you wanted to actually switch between MySQL servers and use XAMPP's control panel, you would have to ensure neither were installed as a service.

PostPosted: 04. June 2007 15:21
by entropicsinkhole
Oh perfect! Thanks for explaining that to me Codesmith.