This commit is contained in:
13
reset-db-simple.ps1
Normal file
13
reset-db-simple.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# 简单的数据库重置脚本
|
||||
Write-Host "请手动执行以下命令来重置数据库:" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "方法1: 如果你有 MySQL 客户端" -ForegroundColor Cyan
|
||||
Write-Host "mysql -h 101.132.182.216 -P 3306 -u root -p < init-database.sql"
|
||||
Write-Host ""
|
||||
Write-Host "方法2: 使用 MySQL Workbench 或其他工具" -ForegroundColor Cyan
|
||||
Write-Host "1. 连接到 101.132.182.216:3306"
|
||||
Write-Host "2. 打开 init-database.sql 文件"
|
||||
Write-Host "3. 执行整个脚本"
|
||||
Write-Host ""
|
||||
Write-Host "方法3: 让 API 自动创建(推荐)" -ForegroundColor Green
|
||||
Write-Host "修改 docker-compose.yml 使用 SQLite 而不是 MySQL"
|
||||
Reference in New Issue
Block a user