24 lines
433 B
Batchfile
24 lines
433 B
Batchfile
@echo off
|
|
REM MySQL MCP Server 启动脚本
|
|
|
|
REM 设置环境变量(可选,从 app.conf 读取)
|
|
set MYSQL_USER=gotest
|
|
set MYSQL_PASS=2nZhRdMPCNZrdzsd
|
|
set MYSQL_URLS=212.64.112.158:3388
|
|
set MYSQL_DB=gotest
|
|
|
|
REM 编译
|
|
echo Building MCP Server...
|
|
go build -o mcp-server.exe main.go
|
|
|
|
if errorlevel 1 (
|
|
echo Build failed!
|
|
exit /b 1
|
|
)
|
|
|
|
echo Build successful! Starting MCP Server...
|
|
echo.
|
|
|
|
REM 启动服务器
|
|
mcp-server.exe
|