Failure to fully uninstall MYSQL will result in an unsuccessful installation

  • 2020-05-07 20:33:45
  • OfStack

If you encounter the following situation where MYSQL cannot be started: no matter whether you double-click mysqld.exe or use the command line, it is not reflected. Check my computer - > Management - > Services and applications - > Service - > mysql- > When started, the result is a path error or an unexpected termination, the service needs to be uninstalled and reinstalled.
The specific unloading method is as follows
Uninstall the mysql service
Create and edit the following bat file to execute


@ECHO OFF 
  net stop mysql 
  c:\mysql\bin\mysqld-nt.exe -remove 
  pause 
 Then reload it 1 Under the MYSQL , the installation method is as follows  
 Create and edit the following 1 a bat File, execute  
  @ECHO OFF 
  e:\mysql\bin\mysqld-nt.exe -install 
  net start mysql 
  pause 


Related articles: