V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
beautifulSpring
V2EX  ›  MySQL

mysql 数据库在访问量很大的情况下,如果想修改数据表中的某个字段或者添加一个字段,怎么做,对数据库没有破坏影响?

  •  
  •   beautifulSpring · 2017-09-19 21:44:57 +08:00 · 4540 次点击
    这是一个创建于 2382 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    2017-09-20 17:11:51 +08:00
    torbrowserbridge
        1
    torbrowserbridge  
       2017-09-19 21:49:46 +08:00 via Android
    新建一个表。
    wy315700
        2
    wy315700  
       2017-09-19 21:57:39 +08:00
    pt-online-schema-change
    beautifulSpring
        3
    beautifulSpring  
    OP
       2017-09-19 22:10:46 +08:00
    @torbrowserbridge 在不添加表的前提下
    beautifulSpring
        4
    beautifulSpring  
    OP
       2017-09-19 22:12:05 +08:00
    @wy315700 啊哦,第一次听说在线修改表 ,我查查
    tb4649120073rs
        5
    tb4649120073rs  
       2017-09-19 22:29:52 +08:00
    gh-ost
    tb4649120073rs
        6
    tb4649120073rs  
       2017-09-19 22:30:50 +08:00
    neoblackcap
        7
    neoblackcap  
       2017-09-19 22:45:50 +08:00
    @beautifulSpring 不添加表,那停机。
    neoblackcap
        8
    neoblackcap  
       2017-09-19 22:47:07 +08:00
    @beautifulSpring 当然 Tidb 他们说支持在线 DDL 操作不锁表,但是这样就需要换数据库
    whistle
        9
    whistle  
       2017-09-20 17:11:51 +08:00
    @wy315700 正解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2702 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:33 · PVG 23:33 · LAX 08:33 · JFK 11:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.