Stack Matrix Hub (8)
MariaDB Table Prefix Clones vs Isolated Staging Databases
Understand why sharing a single database via wp_stg1_ table prefixes creates InnoDB lock contention and risky SQL drop mistakes.
Isolated DB = zero cross-prefix DROP risk · Clean InnoDB buffer eviction
Operational Hazards of Shared Table-Prefix Clones
Storing live (wp_*) and two staging clones (wp_dev_*, wp_qa_*) inside one MariaDB schema clutters backups, bloats INFORMATION_SCHEMA scans, and increases the chance of running a destructive WP-CLI reset against the wrong prefix.
Per-Clone Isolated MariaDB Databases
Modern ChemiCloud cPanel and Hostinger Cloud plans permit dozens to unlimited MariaDB databases. Provisioning client_stg1 alongside client_prod lets agencies drop, snapshot, and restore clones cleanly with dedicated database credentials.
Measured Thresholds & Configuration
| MariaDB Topology | Accidental Drop Risk | Backup & Restore Granularity | Recommended Standard |
|---|---|---|---|
| Shared DB (wp_stg1_ prefix) | High (single credential) | Requires prefix-filtered mysqldump | Legacy single-DB hosts only |
| Isolated Database per Clone | Low (separate DB user) | 1-command DROP/CREATE & restore | Standard for all agency clones |