douzhu5900 2011-07-08 11:48
浏览 34
已采纳

MySQL的。 加载一个表的转储

I have a big dump MySQL database (1.3 GB). How I may load dump only one table?

  • 写回答

2条回答 默认 最新

  • duanjian4150 2011-07-08 11:56
    关注

    If you have access to command-line, best do it that way if you can:

    mysql -u #username# -p #database# < #dump_file#
    

    Otherwise use a gui tool like SQLyog (free community edition is available).

    Using web-tools will almost definatley prove a huge pain.

    To extract a single table, you'll need to manipulate the file, here is a good perl script for it :) http://blog.tsheets.com/2008/tips-tricks/extract-a-single-table-from-a-mysqldump-file.html which I've used successfully in the past.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?