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 (-: .


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

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.

Also worked in Windows 7! Thanks a lot!

Best regards,
Taras Slipets

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

Tapan Pattanayak

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.

exactly what I was looking for.

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.

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


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


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!


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