Manually install MySQL service to windows. my system is win7 x64 and mysql version 5.6 (many old tutorials on the Internet are useless and the version is too old. this is my summary)
.
The installation process is actually simple:
- Open cmd and cd to the bin directory of the mysql file. I decompress it to C:/Program Files/mysql, and enter
Cd "C:/Program Files/mysql/bin"
- Use mysqld.exe to install the service
Mysqld -- install
- Parameters of the supervisor (added by default during installation ).
SC config MySQL binpath = "C:/Program Files/mysql/bin/mysqld MySQL"
Why do you want to do this? many people on the Internet say that the service cannot be started after installation. open computer management-service and view MySQL service attributes, and you will find that the default path is incorrect, you need to change it to the correct path.
OK. Now the MySQL service is installed.