PendingOni
V2EX  ›  生活

[记录]-2025-10-24 愚蠢的复制

  •  
  •   PendingOni · Oct 25, 2025 · 3444 views
    This topic created in 393 days ago, the information mentioned may be changed or developed.

    本应该给新的应用走个 DML 没想到自己眼瞎 意外 DROP 了生产环境的表...

    没开启 bin_log 只好换新数据再一点点同步到旧的记录 好在头儿脾气和心态是真好 也说我万幸 DROP 的不是太重要的表

    四个人 从晚上 6 点熬到了今早上的 5 点 我回了车里躺了不到 2 小时 接着开 50km 回去

    这次算是加班加的最晚的一次 第二是凌晨 2 点 当然我自己犯神经赖不着别人

    9 replies  •  2025-10-27 09:45:42 +08:00
    crocoBaby
    crocoBaby
    Oct 25, 2025
    1
    不用审核的吗?我看操作这个的同事写好脚本都要通过层层审核才能部署执行
    default996
    default996
    Oct 25, 2025 via Android
    2
    能执行 delete 就不错了,你还能 drop
    root71370
    root71370
    Oct 25, 2025 via Android
    3
    上个轻量的审核引擎吧,,还能直接操作生产 drop 命令 也是不太合理
    wonderfulcxm
    wonderfulcxm
    Oct 25, 2025 via Android
    4
    大家的公司好正规啊,我们小公司都是直接操作生产环境的,层层审核?压根不存在
    Gilfoyle26
    Gilfoyle26
    Oct 25, 2025
    5
    drop
    delete
    create

    这些命令生产环境都不能执行
    freemoon
    freemoon
    Oct 25, 2025
    6
    SQL 交叉审核,不要一个人干完了,本质上是流程问题,只要你团队不是一个人。
    slowman
    slowman
    Oct 25, 2025
    7
    周五做变更🤣
    defunct9
    defunct9
    Oct 27, 2025
    8
    这时候就显示出阿里云的优势了,数据秒回退到新表。
    defunct9
    defunct9
    Oct 27, 2025
    9
    就算有 binlog ,也得手搓一个回退环境。这时候应该愿意花钱弄个自动环境了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1859 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 05:42 · PVG 13:42 · LAX 21:42 · JFK 00:42
    ♥ Do have faith in what you're doing.