Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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