Install Mysql in win7 and start it automatically.
1. Download and install MySql. I use mysql_5.6.24_winx64_xiazaba and decompress it to a disk. Here I install it on disk D, D: \ install \ MySQL Server 5.6.
2. set the system environment variables. For convenience, add the MYSQL bin folder PATH (for example, D: \ install \ MySQL Server 5.6 \ bin), does not need to run in the D: \ mysql-5.5.23-win32 \ bin directory.
3. next let's start to add the MYSQL service to winsows services. msc, enter mysqld -- install MySQL -- defaults-file = "D: \ install \ MySQL Server 5.6 \ bin \ my in command line mode of cmd. ini"
After success, start-> Run-> services. msc to find the MySQL service and start the service.
Note: If the registry cannot be modified, choose Start> RUN> regedit.
Find HKEY_LOCAL_MECHINE---SYSTEM --- ControlSet001 or ControlSet002 to find Services, find MySQL, modify ImagePath value to: "D: \ install \ MySQL Server 5.6 \ bin \ mysqld "-- defaults-file =" D: \ install \ MySQL Server 5.6 \ bin \ my. ini "MySQL
Problems occurred during auto-start Configuration:
Install/Remove of the Service Denied! Error
For more information, open cmd.exe. However, right-click "Run as administrator" this time, and then type mysqld -- install.