zhibo/fix_follow_feature.bat
2026-01-03 15:32:31 +08:00

38 lines
872 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ==========================================
echo 关注功能修复脚本
echo ==========================================
echo.
set DB_HOST=1.15.149.240
set DB_USER=root
set DB_NAME=crmeb
set /p DB_PASS=请输入MySQL密码:
echo.
echo 正在连接数据库...
echo.
mysql -h %DB_HOST% -u %DB_USER% -p%DB_PASS% %DB_NAME% < migrate_follow_data.sql
if %ERRORLEVEL% EQU 0 (
echo.
echo ==========================================
echo √ 数据库修复完成!
echo ==========================================
echo.
echo 下一步:
echo 1. 重启后端服务
echo 2. 重新编译Android应用
echo 3. 测试关注功能
) else (
echo.
echo ==========================================
echo × 执行失败,请检查错误信息
echo ==========================================
)
pause