The problem that the mysql5.7 service cannot be started

I'm a beginner and haven't used a database for a long time. I learned Hibernate today and want to use the previous database. After startup, the problem as shown in the figure is found

So I searched online. It is found that the version after mysql5.7 will have such a problem after installation, but the specific reason is not clear, I only talk about the solution here.

The plan is as follows:

  1. Delete the data file under the MySQL file

        2. Open CMD and enter the disk where mysql is located. My mysql database is in D drive.

        3. Enter mysqld --initialize to initialize, and mysql will automatically recreate the data folder for you.

        4. After the creation is complete, re-enter net start mysql to start.

 The above is my reference to the solutions given by others, just picking up people's wisdom.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324471876&siteId=291194637