Database migration

Back to Admin console.

Location: System → Database migration. A sync overwrites business data in the target database, so back up first.

What is on this page

  • The active database, and whether the SQLite and MySQL endpoints are both healthy.
  • Migration direction: source to target. The target is cleared and then filled.
  • Connection settings: host, port, database name, username, password, and table prefix. For SQLite, the page shows the file path and whether it is readable. If the MySQL database does not exist, an account with CREATE privilege can create it during migration.
  • A step-by-step wizard with a live log. Steps include connecting, creating tables or clearing the target, admin accounts, libraries, document index, engagement, ops data, and writing the config at the end.
  • Required acknowledgements: you have backed up, and you understand the target will be fully overwritten.
  • Active connection can be switched only when both databases are healthy and the target already has at least one admin account. An empty target cannot be switched to, which prevents lockout.

While an index rebuild is running, the page may report that migration is unavailable.

[SCREENSHOT] Migration wizard and live log

Using the page

  1. Back up the SQLite file and MySQL.
  2. Fill in the connection settings and wait for the health check to pass.
  3. Tick both acknowledgements, run the steps, and watch the log until it reports that migration finished.
  4. If you want the other side to become the active database, use the switch above. Confirm that you can sign in to the target first.