设为首页 加入收藏

TOP

mysqlbackup恢复特定表(三)
2015-11-21 01:55:39 来源: 作者: 【 】 浏览:1
Tags:mysqlbackup 恢复 特定
-------------------------------------------- datadir = /backup/2015-04-02_12-41-45/datadir innodb_data_home_dir = /backup/2015-04-02_12-41-45/datadir innodb_data_file_path = ibdata1:800M;ibdata2:800M:autoextend innodb_log_group_home_dir = /backup/2015-04-02_12-41-45/datadir innodb_log_files_in_group = 3 innodb_log_file_size = 2147483648 innodb_page_size = 16384 innodb_checksum_algorithm = innodb mysqlbackup: INFO: Creating 14 buffers each of size 16777216. 150402 13:38:25 mysqlbackup: INFO: Copy-back operation starts with following threads 1 read-threads 1 write-threads mysqlbackup: INFO: Could not find binlog index file. binlogs will not be copied for this backup. Point-In-Time-Recovery will not be possible. If this is online backup then server may not have started with --log-bin. You may specify its location with --log-bin-index option. 150402 13:38:25 mysqlbackup: INFO: Creating table: wind.t2. 150402 13:38:25 mysqlbackup: INFO: Copying /backup/2015-04-02_12-41-45/datadir/wind/t2.ibd. 150402 13:38:26 mysqlbackup: INFO: Completing the copy of all non-innodb files. 150402 13:38:27 mysqlbackup: INFO: Importing table: wind.t2. 150402 13:38:28 mysqlbackup: INFO: Analyzing table: wind.t2. 150402 13:38:29 mysqlbackup: INFO: Copy-back operation completed successfully. 150402 13:38:29 mysqlbackup: INFO: Finished copying backup files to '/usr/local/mysql/data' mysqlbackup completed OK! # ls -ll /usr/local/mysql/data/wind/ total 57360 -rw-rw----. 1 mysql mysql 61 Apr 2 13:26 db.opt -rw-rw----. 1 mysql mysql 8590 Apr 2 13:38 t2.frm -rw-rw-r--. 1 mysql mysql 58720256 Apr 2 13:38 t2.ibd /******* ALTER TABLE t2 discard TABLESPACE; ALTER TABLE t2 IMPORT TABLESPACE; *********/ --4.7验证表恢复情况 mysql> use wind; Database changed mysql> show tables; +----------------+ | Tables_in_wind | +----------------+ | t2 | +----------------+ 1 row in set (0.00 sec) mysql> select count(*) from t2; +----------+ | count(*) | +----------+ | 999990 | +----------+ 1 row in set (1.34 sec) mysql> select count(*) from wind.t2 where sname='ocpyang mysql test!'; +----------+ | count(*) | +----------+ | 5000 | +----------+ 1 row in set (0.78 sec)


首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Ubuntu下安装MySQL5.6.23 下一篇mysqldelete操作

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: