After downloading the free install version of MySQL, compress the package. At this point MySQL is not working yet and we need to do some work:
1. Installing the MySQL Service
Create a new batch file, Startmysql.bat, with the following file contents:
@ECHO offrem Register MySQL "D:\application\MySQLServer5.5\bin\mysqld.exe" --install mysql --defaults-file= "d:\ Application\mysqlserver5.5\my.ini "rem start MYSQLSC start" MySQL "Pause
2. Uninstalling the MySQL service
Create a new batch file, Stopmysql.bat, with the following file contents:
rem Stop MySQL service sc stop "MySQL" rem note MySQL service sc delete "MySQL" "D:\application\MySQLServer5.5\bin\mysqld.exe" -- Removepause
Double-click Startmysql.bat to install the MySQL service to your computer. Go to the [Computer]à[Management]à[Service] to find out if the MySQL service is installed and started.
Similarly, to uninstall the MySQL service only need to double-click Stopmysql.bat.
Add MySQL to Windows system services