Skip to content

Instantly share code, notes, and snippets.

@EdEichman
Created August 21, 2015 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdEichman/d23efaf2500695a80224 to your computer and use it in GitHub Desktop.
Save EdEichman/d23efaf2500695a80224 to your computer and use it in GitHub Desktop.
Windows BAT file to toggle MySQL logging. Set up for default XAMPP installation
@echo off
set /p state="Set MySQL Logging state ON or OFF: "
c:\xampp\mysql\bin\mysql -u "root" -e "SET GLOBAL general_log = '%state%';
%SystemRoot%\explorer.exe "C:\xampp\mysql\data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment