This tool allows you to quickly change the status of the MySQL service on Windows with ease.
- Turn the MySQL service on/off with a simple executable file.
- No need to open Command Prompt or remember service commands.
- Download the
.pyfile from this repository. - Replace
"MySQL80"in the code with your MySQL service's name (as shown in Windows Services).
- Open Command Prompt with administrator privileges.
- Run the following commands to install PyInstaller and generate the executable:
pip install pyinstaller pyinstaller --onefile --name "Change MySQL Server Status" path
Replace path with the full path to the .py file.
- Navigate to the
distfolder created by PyInstaller. - Move the
.exefile to your desired location.
- Right-click on the
.exefile. - Go to Properties → Compatibility.
- Check Run this program as an administrator and apply the changes.
- Simply double-click the
.exefile whenever you want to toggle the MySQL service on/off.