---
title: "大表数据迁移小记录"
author: "mabel"
date: "2013-03-19T14:52:35Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2013-03-19T14:52:35Z"
id: 1831821
url: "https://mabel.iteye.com/blog/1831821"
---

1、导出大表数据结构，建新表；

2、导出大表索引脚本；

3、将需要的数据插入新表中；

4、备份大表；

5、删除大表；

6、将新建表重命名为原表；

7、重建索引。