guoyu/快速导入.bat

27 lines
589 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
echo ========================================
echo 导入数据库备份
echo ========================================
echo.
cd /d "%~dp0"
echo 正在导入2025年12月3日备份.sql
echo.
mysql -u root -proot study < "2025年12月3日备份.sql" 2>&1
if %errorlevel% equ 0 (
echo.
echo ========================================
echo ✅ 导入成功!
echo ========================================
) else (
echo.
echo ========================================
echo ❌ 导入失败!
echo ========================================
)
pause