Method 1:
Mysql5.0 has been installed in the Windows Installation Package of mysql5.0. After that, the system is reinstalled, but you do not want to reinstall mysql5.0.
So I want to manually restore the previously installed mysql. My previous installation directory is:
D:/MySQL Server 5.0/
Copy mysqlinstanceconfig.exe to D:/MySQL Server 5.0/and D:/MySQL Server 5.0/bin.
Go to D:/MySQL Server 5.0/bin/run mysqlinstanceconfig.exe
Just go out of the interface!
Run regedit to open the registry and find HKEY_LOCAL_MACHINE> Software> MySQL AB> MySQL server.
Edit the key location and change D:/MySQL Server 5.0/bin to D:/MySQL Server 5.0/
All right, go to D:/MySQL Server 5.0/directory and execute mysqlinstanceconfig.exe to complete the configuration!
Method 2:
I re-installed win2003 and didn't want to download MySQL again. So I re-configured MySQL and run/bin/mysqlinstanceconfig.exe.
When the fast end, the prompt can not find the my-template.cnf, in fact, this article is stored in the form of INI file in the root directory of MySQL, all *. CNF files in
Windows, is *. ini file, MySQL search path is wrong, so we can see the my-template.ini file in the root directory of installing MySQL.
You can run Regedit to find the following project by modifying the registry:
"HKEY_LOCAL_MACHINE/software/MySQL AB/MySQL Server 5/location"
Change the following address to "E: MySQL/MySQL Server 5.0" (of course, depending on the MySQL installation path on your machine, for example, my: D:/MySQL/