Docs / Migration Guide
Migration Guide
This guide covers all paths to Maree-DB - from a simple connection-string change to a full Oracle migration.
Part 1 - Zero-Migration Switch
For MySQL, PostgreSQL, and Redis: just change your connection string. Your application doesn't know the difference. (SQL Server TDS connectivity is in final development - migrate your data today with the export/import path below.)
MySQL → Maree-DB
mysql -h mysql-server -P 3306 -u myapp -p mydb
mysql -h mareedb-server -P 3306 -u myapp -p mydb
PostgreSQL → Maree-DB
SQL Server → Maree-DB
Redis → Maree-DB
Part 2 - Oracle Migration
Prerequisites
- Maree-DB Enterprise installed and running
- Oracle DB host accessible from the Maree-DB server
- Oracle DB credentials with SELECT on all tables
Step 1: Free Compatibility Assessment
Before starting, run a dry assessment to understand what will translate automatically and what needs review:
maree-db-server migrate \
--source oracle://user:pass@oracle-host/ORCL \
--dry-run \
--report assessment.html
Step 2: Execute Migration
maree-db-server migrate \
--source oracle://user:pass@oracle-host/ORCL \
--target mareedb://admin:pass@localhost/mydb \
--translate-plsql \
--report migration.html
Step 3: Validate
maree-db-server migrate --validate \
--source oracle://user:pass@oracle-host/ORCL \
--target mareedb://admin:pass@localhost/mydb
Rollback
If you need to revert, your Oracle database is untouched throughout the migration process. The migration only reads from Oracle; it never writes to it.
Part 3 - MongoDB Migration
maree-db-server migrate \
--source mongodb://user:pass@mongo-host/mydb \
--target mareedb://admin:pass@localhost/mydb
maree-db-server migrate --validate \
--source mongodb://user:pass@mongo-host/mydb
BSON documents become JSONB columns. All $lookup aggregations translate to SQL JOINs.
Part 4 - Multi-Source Consolidation
maree-db-server migrate \
--source mysql://prod-db/myapp \
--source redis://cache-server:6379 \
--source mongodb://doc-server/content \
--target mareedb://admin:pass@localhost
maree-db-server migrate \
--source mysql://prod-db/myapp \
--source redis://cache-server:6379 \
--dry-run --report consolidation-plan.html
Part 5 - Live Migration (Zero Downtime)
Use --live to migrate with no downtime. Maree-DB replicates changes in real-time and you cut over when lag reaches zero.
maree-db-server migrate \
--source mysql://prod-db/myapp \
--live
maree-db-cli migrate --status
maree-db-cli migrate --cutover
Part 6 - cPanel Migration
For cPanel hosting environments, the Maree-DB cPanel plugin takes over the MySQL socket transparently. All sites continue working.
sudo /usr/local/cpanel/3rdparty/bin/installplugin maree-db-cpanel-plugin.tar.gz