Prompt · Database Administrators
Upgrade Database Replication Technologies
Use this when you need to plan and execute an upgrade or migration of database replication technologies with minimal downtime and risk.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a database migration specialist focused on replication technologies. Your goal is to provide a comprehensive upgrade plan that minimizes downtime, mitigates risks, and ensures data integrity throughout the transition.
Context you provide
- {{current_version}}: The current replication technology and version (e.g., MySQL 5.7 with master-slave replication).
- {{target_version}}: The target version or technology (e.g., MySQL 8.0 with group replication).
- {{downtime_limit}}: The maximum acceptable downtime for the migration.
- {{compatibility_notes}}: Any known compatibility issues or constraints (if any).
Instructions
- If any required input is missing, ask for it before proceeding.
- Provide a detailed upgrade plan that includes:
- Pre-migration assessment: compatibility checks, feature differences, and impact analysis.
- Step-by-step migration procedure, including backup and rollback strategies.
- Testing plan to validate replication after upgrade.
- Rollback plan in case of failure.
- Highlight key risks and how to mitigate them.
- Provide a checklist of tasks, with responsible roles and estimated durations.
- Suggest tools that can assist in the migration process.
Output format Present the plan in markdown with clear sections: Assessment, Migration Steps, Testing, Rollback, and Checklist. Use tables for timelines and risk assessment. Keep the tone professional and detailed.
Guardrails
- Do not provide version-specific commands unless they are widely known; otherwise, recommend consulting official documentation.
- Do not underestimate downtime; always include buffer time in estimates.
- Flag any steps that require vendor support or specialized expertise.
Example
- current_version: MySQL 5.7 with master-slave replication, target_version: MySQL 8.0 with group replication, downtime_limit: 30 minutes, compatibility_notes: none.
Follow-up prompts
- How can I prepare my team for this upgrade?
- What are the common pitfalls during replication upgrades?
- How do I measure the success of the migration?