diff --git a/README.md b/README.md index a3dd90e772..ca2e38e27f 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,17 @@ Linux (Ubuntu 24.04) setup, tested on a fresh cloud server, is in [doc/LinuxServ Build the core as usual (see [Install](#install)), then: -**1. Databases.** Use TrinityCore's normal auto-setup with `TDB_full_world_1210.26091_2026_09_09.sql` and -`TDB_full_hotfixes_1210.26091_2026_09_09.sql` in the worldserver folder. worldserver then applies all updates and -`sql/custom` files itself (`Updates.EnableDatabases = 15`); nothing else is needed. The vanilla world converted from -VMaNGOS ships as plain SQL (`sql/custom/world/2026_09_27_00_world_forever_baseline_*.sql`, about 65 MB, so the first -start takes a few minutes). The result is identical to the released database. +**1. Databases.** Download the Forever database release +[forever-tdb-2026-10-14](https://github.com/advocaite/TrinityCore/releases/tag/forever-tdb-2026-10-14), unpack it and +put `TDB_full_world_forever_2026_10_14.sql` and `TDB_full_hotfixes_forever_2026_10_14.sql` in the worldserver folder +(the folder you start worldserver from). On the first start worldserver's auto-setup imports them and then applies +only the `sql/custom` files added after the release (`Updates.EnableDatabases = 15`); nothing else is needed. The +release is the world built from source (TrinityCore TDB 1210.26091, all TrinityCore updates and all of our +`sql/custom` files, including the vanilla world converted from VMaNGOS), so you skip that whole conversion. -Already have a database from an older version (including one built with `vmangos_world`)? Just pull and start -worldserver: it applies the new files on top, and `vmangos_world` can be dropped afterwards. +Already have a database? Just pull and start worldserver: it applies the new files on top. Building from +TrinityCore's own TDB 1210.26091 instead still works (rename it or change `revision_data.h.in.cmake`) but takes much +longer and gives the same result. **2. Config.** The Classic client needs these (everything else can stay default): diff --git a/doc/LinuxServerSetup.md b/doc/LinuxServerSetup.md index 5eb10abec3..be81083275 100644 --- a/doc/LinuxServerSetup.md +++ b/doc/LinuxServerSetup.md @@ -99,21 +99,21 @@ tar -cf - -C "PATH/TO/DATADIR" dbc gt maps vmaps cameras | ssh root@SERVER_IP "m ## 8. Databases -world + hotfixes come from a dump of the dev database (the plan is to ship this dump instead of -TDB). auth + characters are created fresh by worldserver's auto-setup, so no accounts or -characters leave the dev machine. - -Dump on the dev PC (MySQL 8.4 client): +All four databases are created by worldserver's auto-setup on the first start (section 10). +world + hotfixes come from the Forever database release: download it into the bin folder and +unpack it there. ``` -mysqldump --host=127.0.0.1 --port=3306 --user=trinity -p --single-transaction --hex-blob \ - --set-gtid-purged=OFF --no-tablespaces --databases world hotfixes \ - --ignore-table=world.updates_apply_check --ignore-table=hotfixes.updates_apply_check \ - --result-file=forever_db.sql -gzip -4 forever_db.sql # 985 MB -> 277 MB -scp forever_db.sql.gz root@SERVER_IP:/root/ +cd /root/server/bin +wget https://github.com/advocaite/TrinityCore/releases/download/forever-tdb-2026-10-14/TDB_full_forever_2026_10_14.7z +7z x TDB_full_forever_2026_10_14.7z ``` +(On the first test run, before that release existed, world + hotfixes were a `mysqldump` of the +dev database imported with `zcat forever_db.sql.gz | mysql`. That dev DB turned out to hold +leftovers of older SQL file versions and test edits; the release is built from source instead, +see "Forever database release" below.) + MySQL user (password generated and kept in a root-only file; MySQL on Ubuntu already listens on 127.0.0.1 only, which is what we want): @@ -124,13 +124,20 @@ mysql -e "CREATE USER trinity@localhost IDENTIFIED BY '$P'; GRANT ALL PRIVILEGES ON auth.* TO trinity@localhost; GRANT ALL PRIVILEGES ON characters.* TO trinity@localhost;" ``` -Import (4 minutes on the droplet): +## Forever database release (how it is made) -``` -zcat /root/forever_db.sql.gz | mysql -``` - -Check: same row counts as the dev DB (world.creature 79422, hotfixes.hotfix_data 24304). +1. Build world + hotfixes from source into empty databases: TrinityCore's TDB 1210.26091 files in + the working folder, a worldserver config pointing at the new database names with + `Updates.EnableDatabases = 12` (world + hotfixes only), then `worldserver -u` (update and exit). + Took 6 minutes on the droplet. +2. Compare with the dev database table by table (CHECKSUM TABLE, then `EXCEPT` row counts). +3. Copy the website's generated `armory_icon` / `armory_item` / `armory_name` tables from dev. +4. Dump each database on its own (no `CREATE DATABASE`/`USE`, so renamed databases work) without + `updates_apply_check`: + `mysqldump --single-transaction --hex-blob --set-gtid-purged=OFF --no-tablespaces --ignore-table=DB.updates_apply_check DB` +5. Test: a new setup from the two files alone must import them and then apply nothing. +6. Name them `TDB_full_{world,hotfixes}_forever_.sql`, set the names in + `revision_data.h.in.cmake`, publish as a GitHub release. ## 9. Configs, certificate, firewall diff --git a/revision_data.h.in.cmake b/revision_data.h.in.cmake index 3461c8185d..39c9ebb256 100644 --- a/revision_data.h.in.cmake +++ b/revision_data.h.in.cmake @@ -40,8 +40,10 @@ // Database updater base information #define DATABASE_MYSQL_EXECUTABLE R"(@MYSQL_EXECUTABLE@)" -#define DATABASE_FULL_DATABASE "TDB_full_world_1210.26091_2026_09_09.sql" -#define DATABASE_HOTFIXES_DATABASE "TDB_full_hotfixes_1210.26091_2026_09_09.sql" +// Classic 1.60 fork: the Forever database release (TrinityCore TDB 1210.26091 + all updates + sql/custom, built from source), +// https://github.com/advocaite/TrinityCore/releases/tag/forever-tdb-2026-10-14 +#define DATABASE_FULL_DATABASE "TDB_full_world_forever_2026_10_14.sql" +#define DATABASE_HOTFIXES_DATABASE "TDB_full_hotfixes_forever_2026_10_14.sql" // Windows resource defines #define TRINITY_COMPANYNAME_STR "TrinityCore Developers" diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index 9f37eaccbd..7425d04fec 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -382,7 +382,7 @@ bool DBUpdater::Populate(DatabaseWorkerPool& pool) { std::string const filename = base.filename().generic_string(); std::string const workdir = boost::filesystem::current_path().generic_string(); - TC_LOG_ERROR("sql.updates", ">> File \"{}\" is missing, download it from \"https://github.com/TrinityCore/TrinityCore/releases\"" \ + TC_LOG_ERROR("sql.updates", ">> File \"{}\" is missing, download it from \"https://github.com/advocaite/TrinityCore/releases\"" \ " uncompress it and place the file \"{}\" in the directory \"{}\".", filename, filename, workdir); break; }