in fact, if you do not format the MySQL disk when you reload the system, our MySQL does not need to be re-installed
Operation:
1. Create a MySQL service:
start-up and run the-->cmd CD command into the MySQL bin directory (e.g. D:\mysql\bin)
mysqld--install here to fill in the MySQL service name (such as: MySQL)--defaults-file= "here to fill in the path of My.ini (such as: D:\mysql\my.ini)", if successful will be displayed: Service Successfully installed
2. Start the service net start here to write the MySQL service name (for example: MySQL)
stop service net stop MySQL service name
PS:
a)This operation is critical in the 1th step, the path of the My.ini must be written in double quotation marks, otherwise the creation will fail, and the CD command must be in the bin directory or you will be prompted to "cannot find the specified file" error when starting the MySQL service
b) If you have forgotten your MySQL password, you can log in and change your password by logging in with MySQL without password .
c) To delete an existing MySQL service, mysqld--remove mysql service name
How to register the MySQL service after WIN7 reload system