How to Get Xampp to use Existing MySQL...

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to Get Xampp to use Existing MySQL...

Postby entropicsinkhole » 31. May 2007 16:47

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
entropicsinkhole
 
Posts: 6
Joined: 31. May 2007 16:37

Postby Codesmith » 01. June 2007 19:21

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 :)
Codesmith
 
Posts: 101
Joined: 31. March 2007 21:11

Postby entropicsinkhole » 01. June 2007 19:55

Thanks. I'll give it a go and see how it turns out.
entropicsinkhole
 
Posts: 6
Joined: 31. May 2007 16:37

Postby Codesmith » 02. June 2007 17:46

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.
Codesmith
 
Posts: 101
Joined: 31. March 2007 21:11

Postby entropicsinkhole » 04. June 2007 13:49

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!
entropicsinkhole
 
Posts: 6
Joined: 31. May 2007 16:37

Postby Codesmith » 04. June 2007 15:05

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.
Codesmith
 
Posts: 101
Joined: 31. March 2007 21:11

Postby entropicsinkhole » 04. June 2007 15:21

Oh perfect! Thanks for explaining that to me Codesmith.
entropicsinkhole
 
Posts: 6
Joined: 31. May 2007 16:37


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 125 guests