通过一些渠道了解到mysql的恢复和还原有以下方式
1 从binlog 中恢复
--------------我的当前binlog文件十分巨大 ,不知道如何做
         (难道用linux命令到这个大文件里搜索???这个binlog文件要说下 2g多的 )2 即时点还原  复制延迟还原
---------------这个如何做 ???3日志服务器还原
---------------这个又是如何做?4 innodb还原
(具体内容包括3部分
1修复坏的2级索引; 2 修复坏道聚集索引;  3 修复坏的系统结构(可能存在数据丢失)
            ?                         ?                             ?)

解决方案 »

  1.   

    1 从binlog 中恢复
    --------------我的当前binlog文件十分巨大 ,不知道如何做
            (难道用linux命令到这个大文件里搜索???这个binlog文件要说下 2g多的 )
      

  2.   

    I find it 
    Bear With Me Converting Mobile Audio (AMR) to MP3
    Feb15
    2008
    Purging MySQL Binary Logs
    Technology Add commentsIf you have binary logging enabled on your MySQL server (i.e. the log-bin parameter is set in your MySQL configuration file), then you may notice a buildup of rather large files in your MySQL data directory over time (e.g. mysql-bin.000013). Generally speaking, you only need to enable this binary logging if your server is acting as a Replication Master or if you need the ability to do point in time recovery from your latest backup.In any case, here are some useful commands for purging your binary log files:To delete all binary logs older than 7 days:mysql> PURGE BINARY LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 7 DAY);To purge all logs before a specific date:mysql> PURGE MASTER LOGS BEFORE '2008-01-01 00:00:00';To purge logs automatically (every Monday at 3am) you could use a Unix cron job:0 3 * * mon mysql -uroot -e "PURGE BINARY LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 7 DAY);"One Response to “Purging MySQL Binary Logs”   1. Rubén Ortiz Says:
          October 5th, 2009 at 10:18 am      [...] http://www.mernin.com/blog/?p=136 http://lists.mysql.com/replication/1671 http://www.zmanda.com/blogs/?p=28 MySQL – [...]
      

  3.   

    使用 mysql 如下 
    mysql -uroot -p123456 -e "purge binary logs to '$binlog_rm'"