Repository navigation
Storage
LandWard 1.0.4.1 fixes warp rotation precision when reading existing MySQL/MariaDB FLOAT columns. This prevents false target-verification failures with ordinary in-game yaw/pitch values. Existing rows and schemas are not rewritten; the full snapshot comparison remains exact.
If an earlier import copied all records but failed verification, the corrected version can reuse that target only if every record still matches the active source. A different target is rejected without overwriting it. Do not clear the target merely because migration failed; inspect the diagnostic first.
Failures identify the phase (reading/validating the source, connecting to or inspecting the target, writing/verifying the backup, importing, reading back, verifying, or activating). Verification diagnostics show source/target counts and the first differing record ID and field. Warp numeric mismatches show both values. Text fields are summarized without dumping names. SQL failures include SQLState/vendor codes; driver credential messages are not dumped. The log also states whether a backup was verified and which storage remains active.
Since 1.0.3.0, LandWard stores per-land environmental settings and precise named warps in SQLite/MySQL and includes them in both live migration directions and version-4 backups. Older backups remain readable. Do not downgrade a data directory that has been used with a newer schema without restoring its matching backup. See Protection and Warps.
LandWard uses SQLite by default. Use MySQL/MariaDB when you want a separate database server.
Before you begin: in-game migration requires both
landward.adminandlandward.dbadmin(operators have both by default). Players may stay online; LandWard briefly pauses claim changes during the migration. LandWard creates and checks its own migration backup automatically.
SQLite is the default. It stores data locally at plugins/LandWard/landward.db and needs no separate database service.
storage:
type: sqliteOn a new server with no LandWard data, set type to mysql and fill in the
connection details below. For an existing SQLite server, use the migration steps
instead—do not change the storage type by hand first.
storage:
type: mysql
mysql:
host: localhost
port: 3306
database: landward
username: minecraft
password: change-me
ssl: false
pool-size: 10LandWard creates its own tables automatically. Use a separate database for LandWard; do not let unrelated plugins use LandWard's tables.
This moves all player lands, chunks, Safe Zones, members and settings from
landward.db to MySQL/MariaDB.
-
Create an empty MySQL/MariaDB database and account. Do not reuse a database that belongs to another plugin.
-
Edit only the nested
mysql:connection details inplugins/LandWard/config.yml—host, port, database, username, password, TLS and pool size. Leave the storage type set to SQLite:storage: type: sqlite
-
Reload the configuration:
/claimadmin reload -
Inspect the MySQL/MariaDB target:
/claimadmin storage status mysqlFor a fresh migration, use an empty target. Since 1.0.4.1 you can also retry against a previously imported copy: LandWard reuses it only after verifying that every record exactly matches the active source. Matching counts alone are not sufficient; do not clear the target merely because it contains data.
-
Run the live migration:
/claimadmin migrate mysql confirm -
Wait for the completion message. LandWard creates a verified migration backup, copies and checks the data, then activates MySQL immediately. It also saves MySQL as the active storage backend in
config.yml. No restart or player kick is needed.
Use this when moving back to the local plugins/LandWard/landward.db file.
-
Leave the storage type set to MySQL; LandWard needs the current backend as its source.
storage: type: mysql
-
Check the SQLite target:
/claimadmin storage status sqliteUse an empty target, or (since 1.0.4.1) a previously imported copy that still exactly matches the active source. LandWard verifies the full contents.
-
Run the live migration:
/claimadmin migrate sqlite confirm -
Wait for the completion message. LandWard creates a verified migration backup, copies and checks the data, then activates SQLite immediately. It also saves SQLite as the active storage backend in
config.yml. No restart or player kick is needed.
LandWard refuses to overwrite different existing LandWard data. Since 1.0.4.1, an exactly matching copy can be reused without rewriting it. Inspect the target first:
/claimadmin storage status mysql
If the existing LandWard tables only are intentionally disposable, run this while no other players are online:
/claimadmin storage clear mysql confirm
LandWard first creates a backup, then clears only its own tables. It never deletes a database, database user, server file or another plugin’s tables. Replace mysql with sqlite when preparing the local target.
Safety rule: never manually change the storage type before a migration. If a migration fails, LandWard keeps the current storage unchanged.
Next: Configuration · Installation · FAQ: Database and persistence