01. Extract the Mysql-5.5.58-win32.zip to the custom D:\mysql-5.5.58-win32
02. My Computer--attribute--advanced--environment variable--system variable--new system environment variable
Variable name: mysql_home
Variable Value: D:\mysql-5.5.58-win32
03. Add to the original system environment variable Path
;%mysql_home%\bin
04.cmd--into the D:\mysql-5.5.58-win32\bin directory-Enter the service installation command:
Mysqld Install MySQL--defaults-file= "D:\mysql-5.5.58-win32\my-small.ini"
My-small.ini This file may appear differently with the version name
after a successful installation, the Service successfully installed is displayed.
Service Uninstall command: mysqld remove MySQL--defaults-file= "D:\mysql-5.6.17-W64\my-default.ini"
05. Start the MySQL service:
Method 1:
cmd--into the D:\mysql-5.5.58-win32\bin directory--Enter the start service command:
net start MySQL
Method 2:
win7--Control Panel--System and security--management tools--Service--mysql--double-click-Start
Note: cmd that you want to run as an administrator during installation can be installed correctly and run CMD in an administrator manner:
go to C:/windows/system32 find Cmd.exe and then right-click "Run as Administrator" to get CMD Run as Administrator
After installing MySQL after the system installed MySQL path or version changes, resulting in the service can not start, the workaround is as follows
First step: Stop service MySQL
Step Two: (console: Run->regedit), according to the path hkey_local_machine\system\currentcontrolset\services\, find the service you want to change the path of MySQL, You can also use the search function in the registry to find the path you want to modify.
Here you can see the path to the MySQL executable file "
We can write the new path in, and mine is "D:\mysql-5.5.58-win32\mysql\bin\mysqld" –defaults-file= "D:\mysql-5.5.58-win32\mysql\ My-small.ini "MySQL
Then go to the service to find the MySQL service, start MySQL, solve!
Mysql-5.5.58-win32 No setup.exe installation to the Windows XP solution