MySQL database after upgrading to 5.7 version, and the previous version somewhat different, there is no data folder, we know that the MySQL database files are saved in the Data folder, the online people say the 5.6 version of the Data folder to copy one, this statement is not reliable, I have tried, I have been able to login, but can not To modify the administrator password, the following is a standard workaround.
After installing the MySQL5.7, open the cmd Command window and go to the bin directory in the MySQL installation directory and enter the following command:
-- initialize-insecure--user=mysql
After executing the above command, MySQL will build a data folder, and set up the default database, the login user name is root, the password is empty, after the operation is the same as the previous version
Troubleshooting the MySQL service failed to start the service did not report any errors