Fix es0EN5.7 failure to log in without data folder after installation

  • 2020-12-22 17:49:06
  • OfStack

MySQL database after the upgrade to version 5.7, and the previous version a little 1 sample, no data folder, we all know MySQL database file is stored in the data folder, some people say that the 5.6 version of the online data folder copy one, that listen to are unreliable, I also tried, really able to log in, but you can't modify the administrator password, below or give a standard solution.

After installing MySQL5.7, open the cmd command window and enter the bin directory in the MySQL installation directory. Enter the following command:


mysqld --initialize-insecure --user=mysql

After executing the above command, MySQL will create its own data folder and set up the default database. The login user name is root and the password is empty. The following operation will be the same as the previous version 1.


Related articles: