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

36 lines
896 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.
cd /d "%~dp0"
echo 文件2025年12月3日备份_清理版.sql
echo 说明:已移除超长的操作日志数据
echo 数据库localhost:3306/study
echo 用户root
echo.
echo 开始导入...
mysql -u root -proot study < "2025年12月3日备份_清理版.sql" 2>&1
if %errorlevel% equ 0 (
echo.
echo ========================================
echo ✅ 导入成功!
echo ========================================
echo.
echo 所有数据表已导入
echo 操作日志表为空(不影响使用)
echo.
) else (
echo.
echo ========================================
echo ❌ 导入失败!错误代码:%errorlevel%
echo ========================================
)
pause