Restore MySQL after reinstalling the system

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.