the MySQL service on local computer started and then stopped

前端 未结 24 3135
抹茶落季
抹茶落季 2020-11-30 21:59

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Can anyone resol

24条回答
  •  粉色の甜心
    2020-11-30 22:39

    Using Community 8.0.17, upgraded from 8.0.16

    There may be a more secure way of doing this, but since I'm just running a dev box:

    1. navigate to the \data folder
    2. make SURE the \data folder is EMPTY. If files exist the --initialize option will fail
    3. give SYSTEM Full Control permissions on the \data folder
    4. go back to your command prompt
    5. run mysqld --initialize

    you should see all of the required data file structures in the data folder now. If they are not created, the mysqld process has contention or improper security to write into the folder correctly.

    Now start your named service in whatever fashion you want (SC/NET/service.msc, etc)

    Assuming all of the files were created properly by --initialize the service will start.

提交回复
热议问题