One of the correct ways to install MySQL green

Source: Internet
Author: User

This article describes how to install MySQL in green mode. If you need to install MySQL in green mode, however, you do not know how to solve the problem correctly, so the following articles must be good teachers and friends for you.

Because the system is reinstalled, MySQL cannot be used, but you do not want to reinstall MySQL .)

1. Import the following registration information. Make sure that the Location and DataLocation locations are correct.

 
  1. Windows Registry Editor Version 5.00  
  2. [HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB]  
  3. [HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Server 5.1]  
  4. "FoundExistingDataDir"="0"  
  5. "Version"="5.1.39"  
  6. "Location"="D:\\Program Files\\MySQL\\MySQL Server 5.1\\"  
  7. "DataLocation"="D:\\Program Files\\MySQL\\MySQL Server 5.1\\"  

2. Make sure that the my. ini file is in the installation directory of MySQL and change the my-huge.ini to my. ini if not.

3.run mysqlinstanceconfig.exe under bin.

You can also perform the following steps in Step 1:

 
  1. mysqld --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini  
  2. mysqld --install MySQL --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini  
  3. pause 

Remove Service

 
  1. mysqld --remove MySQL  
  2. pause 

The above content is an introduction to the green Installation Method of MySQL. I hope you will find some gains.

The above content is a description of the MySQL green installation method, hoping to help you in this regard.

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.