Alucns
V2EX  ›  问与答

10 多 G 的 MYSQL 用什么工具导入比较快捷?

  •  
  •   Alucns · Nov 19, 2015 via iPad · 2879 views
    This topic created in 4012 days ago, the information mentioned may be changed or developed.
    随着网站内容越来越多, mysql 也越来越大,数据备份和故障数据还原特别麻烦了。
    你们有维护过这么大的数据库吗,欢迎您提出宝贵的经验,谢谢!
    7 replies  •  2015-11-19 16:00:49 +08:00
    ayang23
    ayang23
    Nov 19, 2015
    1
    先把除主键外所有索引删掉,再导入,重建索引
    Alucns
    Alucns
    OP
    Nov 19, 2015 via iPad
    2
    @ayang23 不是一个表呢,上百个表备份出来十多 G 呢
    dreamcountry
    dreamcountry
    Nov 19, 2015
    3
    直接备份 mysql 的数据表文件
    xlvecle
    xlvecle
    Nov 19, 2015
    4
    直接 loads text 文本
    dong3580
    dong3580
    Nov 19, 2015
    5
    @dreamcountry
    +1

    这样还不如每次都备份数据库主文件,
    choury
    choury
    Nov 19, 2015
    6
    哎,十个 G 的数据还算大吗?按照表或者库分别导出,多线程并行导入导出
    julyclyde
    julyclyde
    Nov 19, 2015❤️1
    7
    不应该用导出功能来备份
    看看 xtrabackup 工具
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 05:43 · PVG 13:43 · LAX 21:43 · JFK 00:43
    ♥ Do have faith in what you're doing.