Skip to content
MOMU EMULATOR THE SERVER OWNER’S LIBRARYNeed a hand? Get support ↗
MOMUEMULATOR
简体中文
PRACTICAL TUTORIAL / 443 min read · Advanced

Database scripts, account creation and migrations

SQL files are executable operations, not editable game balance tables. Some add schema; some alter data or clean a template. Read the actual script before running it.

Recorded procedureEdition 2.0 · English / 简体中文
01 / WHAT YOU WILL LEARN

The outcome to aim for

SQL files are executable operations, not editable game balance tables. Some add schema; some alter data or clean a template. Read the actual script before running it.

Before you start

Read the complete procedure and its version notes. Record the affected server role and keep an untouched backup outside scanned data folders.

ScopeTeaching examples and recorded structures. Application and gameplay must be verified on your deployed version.

Files you need

VISUAL WALKTHROUGH

One step at a time

  1. STEP 1

    Confirm the SQL server, target database and backup restore procedure. Keep connection credentials outside customer-facing documentation.

  2. STEP 2

    Use DB/Diagnostics/MOMU_Ranking_SQL_Diagnostic.sql to investigate ranking connectivity according to its instructions. Distinguish diagnostic SELECT statements from schema/data-changing statements.

  3. STEP 3

    For a migration, read its prerequisites and compare existing tables/columns before applying it. A date in the filename is not a command to execute all files in order.

  4. STEP 4

    CreateAccount.sql is for a deliberate account-creation operation. CleanCustomerTemplate and non-reset scripts can change existing data; never run them merely because they are present.

  5. STEP 5

    After migration, start the matching DataServer first, inspect SQL errors, test login/save/ranking or the specific new system, and record the applied migration.

Apply the real change

Use the load method stated in the steps for this system. Startup-only settings require a planned restart. The reload finder below shows recorded groups; confirm whether the particular field is startup-only.

Find the file’s reload instructions →

Verify the result in game

If the expected result is missing, restore the backed-up files and repeat the same reload/restart before adding another change.

Built around the supplied MOMU configuration snapshot. Reference entries flag alternate copies and unconfirmed fields. Match the guide to your deployed version; archived packages and live gameplay were not audited by publishing these pages.