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.
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB]
- [HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Server 5.1]
- "FoundExistingDataDir"="0"
- "Version"="5.1.39"
- "Location"="D:\\Program Files\\MySQL\\MySQL Server 5.1\\"
- "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:
- mysqld --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini
- mysqld --install MySQL --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini
- pause
Remove Service
- mysqld --remove MySQL
- 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.