The simplest version of mysql for windows green configuration, one button buttoned

OFF @ECHO
the REM the taskkill / F / IM mysqld.exe
the REM RD / S / Q. \ Data
@if exist "Data" GOTO insted of
@echo starts initialization database
@cd bin
@mysqld --initialize --user = MySQL --console
@echo after successful initialization, random string is the last line of the above temporary password
@echo start the service program
@cd .. \ the Data \
@start .. \ bin \ mysqld
@echo Please enter the temporary password, and then set password = password ( '123qwe'); change your password
@cd ..
@ \ bin \ MySQL -u root -p.
@goto End


: insted of
@echo has been initialized, you can delete the data directory, you will re-initialize
@echo start the service program
@cd data
@start .. \ bin \ mysqld


: End
@pause
Published 84 original articles · won praise 15 · Views 140,000 +

Guess you like

Origin blog.csdn.net/TDGX2004/article/details/54375937