esolve
V2EX  ›  问与答

如何查看 mysql 某个数据库最近 alter 的几个表

  •  
  •   esolve · Nov 13, 2017 · 2129 views
    This topic created in 3279 days ago, the information mentioned may be changed or developed.

    之前开发环境中 alter 了几个表

    现在要去 alter 部署环境中的

    但是怕有遗漏

    怎么查询开发环境中 mysql 数据库里最近 alter 了什么?

    4 replies  •  2017-11-13 16:41:21 +08:00
    odirus
    odirus
    Nov 13, 2017 via Android
    1
    navicat 有结构对比功能
    esolve
    esolve
    OP
    Nov 13, 2017
    2
    @odirus 部署环境在外网里,不能远程登录,没有做 nginx 路由
    kiwi95
    kiwi95
    Nov 13, 2017 via Android
    3
    记 binlog 然后把这段时间的 binlog 解析出来导入新库执行一下
    ghonfir
    ghonfir
    Nov 13, 2017
    4
    开了 binlog 的话 把 ddl 的 binlog 解析出来就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:25 · PVG 21:25 · LAX 05:25 · JFK 08:25
    ♥ Do have faith in what you're doing.