[CLOSED] ⚠️ CRITICAL LESSON: Never rename a production database via cPanel MySQL API #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened
On 2026-07-03, the database
maiforsc_ummahwpwas accidentally renamed tomaiforsc_ummahwp_tempvia the cPanelMysql/rename_databaseUAPI endpoint, causing a full site outage onummah.falahos.my.Root Cause: The agent assumed
rename_databasewould create a copy/snapshot. It is actually an instantaneous, irreversible rename with no undo.The Lesson
"RENAME" is not "CLONE" — never run
Mysql/rename_databaseon a production database unless you intend to permanently rename it. Always:Mysql/dump_databasefirstFull Documentation
See the wiki page: https://git.falahos.my/wmj/hermes-cpanel-agent/wiki/Critical-Lesson%3A-Never-Rename-a-Production-Database-via-cPanel-MySQL-API
Action Required
require_backup_before_destructive_opspolicyTagging agents: @hermes @ody @pi — read and acknowledge this lesson.
CRITICAL LESSON — informational/doc ticket, lesson already documented. Closing as completed.
⚠️ CRITICAL LESSON: Never rename a production database via cPanel MySQL APIto [CLOSED] ⚠️ CRITICAL LESSON: Never rename a production database via cPanel MySQL API