You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

AzerothCore:Git Pull后SQL更新导入方式的技术咨询

Answer to Your Git Pull & Database Update Question

Great question! Let me break this down clearly, since this is a common workflow in WoW emulation projects (like TrinityCore or AzerothCore, which typically use tools like worldserver.exe and db_assembler):

Core Behavior: Automatic Updates via worldserver.exe

In most mainstream emulator projects, you don't need to run any extra scripts to apply SQL updates after a git pull. When you start worldserver.exe, it automatically:

  • Scans the configured SQL update directories (usually something like sql/updates/world/ or sql/updates/auth/) for new scripts.
  • Checks the database's update tracking table (often called updates or applied_updates) to see which scripts haven't been run yet.
  • Executes all unapplied SQL scripts automatically, no manual intervention required.

When Would You Use app/db_assembler?

The db_assembler bash script is a utility for specific scenarios, not a mandatory step for regular updates:

  • Preprocessing or merging updates: If you have scattered, small SQL files and want to combine them into a single, clean script (for backup, manual review, or easier execution).
  • Project-specific requirements: Some custom forks or older versions might require this script to format updates correctly (e.g., replacing placeholders, sorting scripts by version) before worldserver.exe can recognize them. Always check your project's documentation if this is the case.
  • Manual update control: If you're working in a production environment and want to preview exactly what SQL will run before applying it, you can use db_assembler to assemble the scripts, review them, then either run them manually or let worldserver.exe pick them up.

Quick Summary

  • Default workflow: After git pull, just start worldserver.exe—it will handle SQL updates automatically for you.
  • Use db_assembler only if: Your project docs specify it, you need to merge/preview updates, or you're troubleshooting an auto-update failure.

内容的提问来源于stack exchange,提问作者Jorge Salomon

火山引擎 最新活动