MYSQL数据库备份,优化,恢复的步骤
1,获得指定数据库的所有表名称或表状态信息 show tables , show table status2,获得指定表的结构信息 describe tablename , SHOW INDEX from tablename , show create table tablename
3,优化数据表 optimize table tablename
4,生成insert or replace的sql
5,恢复数据库就是执行生成的备份SQL了
页:
[1]