I have installed MySql and Apache server using XAMPP under Windows Vista. MySql and Apache keep running even though I tried to stop them using the XAMPP Control Center. The Error message is "Error: MySql Service not stopped [-1]"
How can I stop them? Why does this problem occurs?
P.S I can't ask the question in the apachefriends.org forum (where I downloaded XAMPP) because it is all written in German (-: .


martin@drupal.org.uk’s picture

Same thing happened to me the other day. I don't have an answer so maybe www.wampserver.com would work for you.

blahblahblahblahblahblah’s picture

This info only applies to Vista.

I had the same problem with XAMPP for Windows. Once starting the Apacha, FileZilla, and MySQL services I could stop the services. In order to do so, you have to run the XAMPP Control Panel as Administrator. Either right click on the program or shortcut and choose "Run As Administrator" or right-click on the program and shortcut and choose Properties, under the Compatibility tab, check the box setting the program to always run at the administrator privilege level. Another inconvenience of Vista.

Taras Slipets’s picture

Also worked in Windows 7! Thanks a lot!

tapanpattanayak’s picture

I have win 7. I was facing the same problem. This solution helped me to resolve the problem. Thanks a lot.

Tapan Pattanayak

cbarney522’s picture

I had been looking around the Net for 20 minutes for an 'easy' solution, hoping to avoid a complete uninstall/re-install. The 'run as administrator' solution worked for me running XAMPP on Vista 64-bit.

wicketywick’s picture

exactly what I was looking for.

sintu212’s picture

I had this problem with windows 7 . I have solved this problem with select run as administrator. right click on xampp control panel icon than check
run as administrator in compatibility section. Now every things work fine.

cata.vancea’s picture

I confirm that this is also is the fix for this problem in windows 7 !


jarvisjustin’s picture

i have try to stop the xampp server but windows explorer close the entire application, so i'm search for an answer...

solution 1:

just run the xampp server as administrator privilege.

solution 2:

mysql path and xampp path are crashed change this paths.
tomcat port and xampp port number are same so go to tomcat config and file server.xml open it find the port number change it.

that's it you have done it...

best regrets

mochyaz’s picture

Nice. I will try this solution in my case

wusel’s picture

You can find http://www.apachefriends.org/en/index.html and http://www.apachefriends.org/f/viewforum.php?f=34 in english. Where is the problem?

But I cannot follow your problem:

If you have installed XAMPP as C:\XAMPP\ or D:\XAMPP\ then there is no problem.
I think, you may have installed it as service, then you have to stop your windows-services as windows-admin!

Good luck!


devist’s picture

si possono utilizzare altre versioni del xampp control panel, funzionano perfettamente.
io uso la 3.0.2 con successo su windows 7.

wusel’s picture

you can use an other version of the xampp control panel, works perfectly.
I use the 3.0.2 successfully on windows 7.


wishow’s picture

Hi, I confirm that this solution works for me on Windows 7.

stellargao’s picture

BTW, why I can't stop httpd.exe in the task manager?