Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
igot2phones authored Mar 27, 2024
1 parent 774a987 commit 9088ba4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions SQLswitch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
net session >nul 2>&1
if %errorlevel% == 0 (
echo Success: Administrative permissions confirmed.
) else (
echo Failure: This script must be run as an Administrator!
pause >nul
exit /b
)
sc query "MySQL80" | find "RUNNING"
if %errorlevel% == 0 (
net stop "MySQL80"
echo MySQL80 stopped.
) else (
net start "MySQL80"
echo MySQL80 started.
)

0 comments on commit 9088ba4

Please sign in to comment.