1. Unzip the Mysql-5.7.12-win32.zip file.
2. Add environment variables to the bin folder in the extracted folder.
3. Create the Data folder in the extracted folder.
4. Copy the My-default.ini and rename the copied copy to the My.ini file, then modify the My file to assign Basedir and DataDir to the corresponding path.
5. In cmd, go to the established Data folder and execute "mysqld--initialize" to initialize the Data folder.
6.CMD Enter the Bin folder and perform "Mysqld-install" to install the service.
7. Then enter "net start MySQL" to start the service.
where the default Initialize password In the *.err file of the Data folder initialized with "Mysqld--initialize". Open the file with Notepad to find a similar place
The "UUE!NWB54W.O" in the Anti-white section is the password that is initialized.
Modify the default root password
First use the default password to log in to the database, and then use "Set Password = password (' Your own password ');" statement.
There is a workaround for the problem that my SQL service cannot start.
In general, data is not initialized. Workaround proceed to step 5th above to resolve.
MySql5.7.12 Install-free configuration and service cannot start problem resolution