备份需要恢复的条件1、有定量的全备份2、有增量的binlog备份 恢复过程:1、关闭数据库的binlog日志,防止恢复的数据写入日志。[root@166087 data]# vim /application/mysql/conf/my.cnf #log-bin=mysql-bin[root@166087 data]# /etc/init.d/mysqld restartShutting down MySQL... SUCCESS!Starting MySQL.. SUCCESS! 2、导入全量备份数据[root@166087 data]# mysql -uroot -hlocalhost -p123456 < test.sql3、在binlog中筛选恢复的时间点[root@166087 data]# mysqlbinlog --start-datetime="2015-11-02 4:56:50" mysql-bin.000001 > binlog.sql[root@166087 data]# mysql -uroot -hlocalhost -p123456 < binlog.sql4、验证数据是否正确5、重新打开binlog[root@166087 data]# vim /application/mysql/conf/my.cnf log-bin=mysql-bin [root@166087 data]# /etc/init.d/mysqld restartShutting down MySQL... SUCCESS!Starting MySQL.. SUCCESS!