Execute net start mysql when installing mysql and prompt "mysql service cannot be started without any error reported"

1. Downloaded a mysql compressed package and unzipped it to the attached file on the d drive (there is no "data" "my.ini" in this folder) file

2. Then create a new my.ini file in the pressurized directory (first create a .txt file to write things in, and then modify the file with the suffix .ini)

3. Then I run the following command under cmd and start getting error

4. Solution: This problem is caused because the data file cannot be initialized (1. Create a new empty data folder in the mysql pressurized directory 2. Run the command below (mysqld --initialize) to initialize the data folder)

5. ok done. Then use it happily. . . (Remember to turn it on after the service is turned off.)

 

Guess you like

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