Problem Solving | MySQL80 service on the local computer stops after starting, some services when not in use by other services or programs will automatically stop

After mysql8.0 have been installed and connected properly navicat, today opened navicat when suddenly an error not connect mysql,

Restart mysql80 service display service stops,

Then the Internet to find ways to initialize, change my files .... have tried various methods, enter net start mysql still display can not be restarted. Helpless, select uninstall reinstall. .

Completely uninstall method, reference https://www.cnblogs.com/diaoye/p/9665392.html

1 "Stop MySQL service
start -" All Applications - "Windows management tools -" service, the MySQL service is stopped.
2 "uninstall mysql server
Control Panel \ All Control Panel Items \ Programs and Features, uninstall the mysql server.
3 "The MySQL MySQL installation directory under the file folder deletion (I install directory is C: \ Program Files (x86) \ MySQL)
4" run "regedit" file, open the registry.
Delete HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL folder
to delete HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL folder.
Delete HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL folder.
If there is no appropriate folder, you do not delete.
C "to delete the C drive under" 5: \ ProgramData \ MySQL "folder, if not delete it with a smash out to 360,
the programData file is hidden by default, set the display after the visible, or directly copy the C: \ ProgramData enter into the address bar to enter!
The entire MySQL folder deleted. . .
6 "Start -" all applications - "Windows management tools -" Service
If you have already uninstalled MySQL, but through the "start -" All Applications - "Windows Administration Tools -" Services "view MySQL service still left in the
system services. I do not want to change the service name, change how to do it.
Just enter a command in CMD where you can delete the services:
sc the Delete MySQL MySQL // here is that you want to delete the name of the service
As a service has been deleted.

Then, reinstall MYSQL successful, error finally disappeared. . .

My MySQL installation path: C: \ Program Files \ MySQL \ MySQL Server 8.0

data library path: C: \ ProgramData \ MySQL \ MySQL Server 8.0 \ Data

 

Guess you like

Origin blog.csdn.net/LivLu24/article/details/94050553