When installing the mysql5.7+ version, if you find the root directory, missing Data folder, please do not copy the other version of the Data folder!
Open the cmd Command window and go to the bin directory of the MySQL installation directory. Then enter the command: Mysqld--console
After this command completes, enter Mysqld--initialize
If the following occurs after Mysqld--initialize is executed
[ERROR]--initialize specified but the data directory have files in it. Aborting
[ERROR] Aborting
The above error is that after you have built the data folder, with Mysqld--initialize error
Delete the previously created Data folder, and then note the data under the My.init file, created by MySQL itself
D:\programsfiles\mysql\mysql-5.7.11-winx64\bin>mysqld--initialize
D:\programsfiles\mysql\mysql-5.7.11-winx64\bin>net start MySQL
MySQL Service is starting
MySQL Service has started successfully
MySQL 5.7+ version package does not have a workaround for the data directory