Skip to content

Database migration

Moving a database goes well or badly long before cutover night. Here’s how to approach it, and what SQL Cockpit can do on each engine.

The problem

Migrations tend to go wrong through what nobody listed: a forgotten job, a view that depends on a renamed column, or data that nobody checked after it moved. Finding that out during cutover is the expensive way.

Recognise the symptoms

  • No shared list of what’s moving and what depends on it
  • Validation that amounts to comparing row counts
  • A cutover plan that lives in one person’s head
  • No agreed way to go back if it goes wrong

A practical approach

  1. List what’s moving

    Inventory the tables, routines, jobs and applications involved, and note what depends on what.

  2. Rehearse with real volumes

    Test on data of a realistic size, so you learn how long it takes and where it struggles.

  3. Decide how you’ll validate

    Agree the checks up front: row counts, checksums and application tests. Decide who signs them off.

  4. Plan the cutover and the way back

    Write down each step, the point of no return and how you’d roll back before that point.

Database migration by technology

SQL Server

Available: Plan, move and validate SQL Server data, with progress visible to the whole team.

Backup and restore, and SQL Server’s own data movement tools.

PostgreSQL

Not available yet: No migration tools yet, but object search can help you list what’s in the database before you plan.

pg_dump and pg_restore, or logical replication.

MySQL

Not available yet: No migration tools yet, but object search can help you list what’s in the database before you plan.

mysqldump, MySQL Shell dump utilities or replication.

MariaDB

Not available yet: No migration tools yet, but object search can help you list what’s in the database before you plan.

mariadb-dump, mariadb-backup or replication.

Oracle

Not available yet: No migration tools yet, but object search can help you list objects and PL/SQL before you plan.

Oracle Data Pump.

SQLite

Not available yet: No migration tools yet, but object search can show you what’s inside a file before you move it.

The sqlite3 .dump command, or VACUUM INTO for a clean copy.

What success looks like

A cutover that follows a rehearsed plan, with validation results you can show people afterwards.

SQL Cockpit’s migration tools are for SQL Server. They don’t move data between different engines.