Considerations for reinstalling MySQL

Source: Internet
Author: User
If you need to reinstall Mysql in special circumstances, you should do the following: 1. if the previous database still needs to be used, you should back up the entire Mysql directory after stopping mysql. the command to stop mysql is as follows: Netstopmysql2. Delete Mysql from Add/Delete. To prevent cleanup, run the following command: SCdeleteMysql and delete

If you need to reinstall Mysql in special circumstances, you should do the following: 1. if the previous database still needs to be used, you should back up the entire Mysql directory after stopping mysql. the command to stop mysql is as follows: Net stop mysql 2. delete Mysql from Add/delete operations. To prevent cleanup, run the following command: SC delete Mysql and delete

If you need to reinstall Mysql in special circumstances, you should do the following:

1. If the previous database still needs to be used, you should back up the entire Mysql directory after stopping mysql.

The command to stop mysql is as follows:
Net stop mysql

2. Delete Mysql from Add/delete operations. To prevent non-clean deletion, run the following command:

SC delete Mysql

Then delete the Registry
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services
If this item is not available, you do not need to delete it.

3. delete or rename the original mysql installation directory and Data directory.

4. Restart the server.

5. Follow the video to install Mysql step by step. After the installation, the self-check will show that Mysql is normal.

Note: If you have tried the above methods, we recommend that you install MySQL and download it from the off-star download center. remember to select the correct DATA directory during installation. It is installed on drive C: \ Documents and Settings \ All Users \ Application Data \ MySQL Server 5.1 \ by default \), required. if you need to reinstall Mysql in special circumstances, you should do the following:

1. If the previous database still needs to be used, you should back up the entire Mysql directory after stopping mysql.

The command to stop mysql is as follows:
Net stop mysql

2. Delete Mysql from Add/delete operations. To prevent non-clean deletion, run the following command:

SC delete Mysql

Then delete the Registry
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services
If this item is not available, you do not need to delete it.

3. delete or rename the original mysql installation directory and Data directory.

4. Restart the server.

5. Follow the video to install Mysql step by step. After the installation, the self-check will show that Mysql is normal.

Note: If you have tried the above methods, we recommend that you install MySQL and download it from the off-star download center. remember to select the correct DATA directory during installation. It is installed on drive C: \ Documents and Settings \ All Users \ Application Data \ MySQL Server 5.1 \ by default \), required.

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.