This commit is contained in:
Yangxt
2026-09-21 16:46:55 +08:00
parent 01842c59c6
commit ad2b0a7d3e
58 changed files with 6906 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
@echo off
setlocal
cd /d "%~dp0"
net session >nul 2>&1
if %errorLevel% neq 0 (
echo Requesting Administrator...
powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
exit /b
)
if not exist "dist\mysql-tunnel.exe" (
echo dist\mysql-tunnel.exe not found. Run build.bat first.
pause
exit /b 1
)
if not exist "config.yaml" (
echo config.yaml not found in %cd%
pause
exit /b 1
)
dist\mysql-tunnel.exe --install --config "%cd%\config.yaml"
pause
endlocal