[Master Host]
Service Registration MYSQLD Install MySQL--defaults-file= "D:\IDE\mysql-5.7.20-winx64\my.ini"
Modify the Registry Hkey_local_machine\system\currentcontrolset\services\mysql
Initialize Mysqld--initialize
Start the net start MySQL
==================================================================================
Since MYSQL5.6 start root is a random password, you need to change the password
net stop MySQL
CD "C:\Program Files (x86) \mysql\mysql 5.7\bin"
Start Mysqld--skip-grant-tables
Mysql-ane "Update mysql.user set Authentication_string=password (' Mynewpassword ') where user= ' root '"
Mysqladmin shutdown
net start MySQL
Mysql-uroot-p
Enter Password: (Enter the password ' Mynewpassword ' and hit <Enter>)
==================================================================================
Unloading:
Remove Service mysqld Remove
SC Delete MySQL
reg delete "Hkey_local_machine\system\controlset001\services\eventlog\application\mysql"/F
reg delete "Hkey_local_machine\system\controlset002\services\eventlog\application\mysql"/F
reg delete "Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql"/F
[Slave Slave machine]
Mysqld Install Mysql-slave--defaults-file= "D:\IDE\mysql-5.7.20-winx64-slave\my.ini"
Installation under MySQL Windows