guoyu/_已清理文件备份_周六 22512/bat/导入备份数据库.bat
2025-12-06 20:11:36 +08:00

30 lines
697 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
echo ========================================
echo 导入数据库备份
echo ========================================
echo.
echo 正在导入2025年12月3日备份.sql
echo 目标数据库localhost:3306/study
echo 用户root
echo.
echo 开始导入...
mysql -u root -proot study < "2025年12月3日备份.sql"
if %errorlevel% equ 0 (
echo.
echo ========================================
echo ✅ 导入成功!
echo ========================================
) else (
echo.
echo ========================================
echo ❌ 导入失败!错误代码:%errorlevel%
echo ========================================
)
echo.
pause