Sunday, January 3, 2010

My SQL Error 0

This posting is about a recent error I encountered while working
with MySQL. After a little hardwork i got a few solution for it and I
would like to share it.

This works for windows XP SP2 and MySql Server 4.1:

If you are getting an error message saying that MySql cannot start (Error: 0)
then you can take the following steps.
Solution 1:

1)Click on start->All Programs->MySql Server 4.1->MySql Server Instance
  Config Wizard.
2)Click next then click on Remove Instance. Then Execute.
3)Now uninstall MySql Server using the Add/Remove Software in the windows
  control panel.
4)After this has been uninstalled YOU MUST MANUALLY DELETE THE FOLDER WHERE
  IT WAS INSTALLED. In my case it was installed in: C:\Program Files\MySQL.
5)When this folder has been deleted you can reinstall without restarting and
  this time you will no longer get the error.

Solution 2:

1. UNINSTAL YOUR PHP AND DELETE DIR.
2. STOP THE MYSQL SERVICE- remove instance, AND UNINSTALL - windows uninstall
3. DELETE EVERY mysql dll file ON YOUR HARD DRIVE
4. START UP REGEDIT AND SEARCH FOR MYSQL, DELETE EVERY KEY THAT POINTS TO MYSQL.
5. REBOOT COMPUTER
The most important steps:
6. FIRST INSTALL MYSQL, USE STANDARD CONFIGURATION !!!!
7. THEN INSTAL PHP AFTER MYSQL

IT SEEMS THAT PHP BLOCKS MYSQL SERVICE WITH ITS OWN ONES.

2 comments: