Batch file to easily optimize the mysql database
SET mysqldir=c:\mysql\bin
SET mysqluser=root
SET mysqlpassword=mypass
@REM Change to mysqldir
CD %mysqldir%
@REM dump database. This is all one line
"%mysqldir%\mysqlcheck" -u %mysqluser% -p%mysqlpassword% --repair --analyze --optimize --all-databases --auto-repair"
Comments
Post a Comment