Monday, January 26, 2009

Error: mysql service not started [-1] on XAMPP 1.6 latest


This happened to me after installing WinMysqlAdmin.

So, what I did to solve this is the following:

Go to Start -> Run
Type "cmd" and press ENTER This will bring you to the command prompt.
Type "sc delete MySql" and hit enter. It will give you some sort of confirmation saying the service has been deleted.

This will delete MySql as a service. For some reason, XAMPP for Windows has problems running MySQL as a service, so do not check that box. Also, when you click the "Admin" link from the XAMPP control panel, it attempts to start MySQL as a service as well. Just don't do that. Any settings you need to change for MySQL should be modified by changing the config files directly with your favorite text editor, or you should be able to use PHPMyAdmin.

Information taken from this website.

1 comment: