设为首页 加入收藏

TOP

mysql的xtrabackup备份恢复等基本操作教程(三)
2018-04-18 06:06:46 】 浏览:767
Tags:mysql xtrabackup 备份 恢复 基本操作 教程
ed up to log sequence number 2786837 (0%) InnoDB: Database was not shutdown normally! InnoDB: Starting crash recovery. InnoDB: xtrabackup: Last MySQL binlog file position 1527, file name my-bin.000043 InnoDB: Removed temporary tablespace data file: "ibtmp1" InnoDB: Creating shared tablespace for temporary tables InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... InnoDB: File './ibtmp1' size is now 12 MB. InnoDB: 96 redo rollback segment(s) found. 1 redo rollback segment(s) are active. InnoDB: 32 non-redo rollback segment(s) are active. InnoDB: Waiting for purge to start InnoDB: 5.7.19 started; log sequence number 2786837 xtrabackup: starting shutdown with innodb_fast_shutdown = 1 InnoDB: FTS optimize thread exiting. InnoDB: Starting shutdown... InnoDB: Shutdown completed; log sequence number 2786856 180416 21:39:19 completed OK! --全量恢复 [root@single-instance lib]# innobackupex --defaults-file=/etc/my.cnf --copy-back /mysql/innobackupex_dir/2018-04-16_19-56-45 180416 21:49:39 innobackupex: Starting the copy-back operation IMPORTANT: Please check that the copy-back run completes successfully. At the end of a successful copy-back run innobackupex prints "completed OK!". innobackupex version 2.4.10 based on MySQL server 5.7.19 Linux (x86_64) (revision id: 3198bce) 180416 21:49:39 [01] Copying ib_logfile0 to /var/lib/mysql/ib_logfile0 ...... 180416 21:49:41 [01] Copying ./xtrabackup_info to /var/lib/mysql/xtrabackup_info 180416 21:49:41 [01] ...done 180416 21:49:41 completed OK! --打开mysql [root@single-instance ~]# service mysqld start Starting mysqld (via systemctl): [ OK ] --登录mysql [root@single-instance ~]# mysql -uroot -p'Root123$' mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.19-log MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. --查看flydb存在,全量备份恢复成功 mysql> use flydb Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed --查看全量备份后,增量备份前的数据在,增量备份恢复成功 mysql> select * from please_recovery_me_t; +------+ | a | +------+ | 1 | | 2 | +------+ 2 rows in set (0.00 sec) --启动库遇到的问题 [root@single-instance mysql]# chown -R mysql:mysql mysql/ [root@single-instance mysql]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock [root@single-instance mysql]# mkdir -p /var/run/mysqld [root@single-instance mysql]# chown mysql:mysql /var/run/mysqld [root@single-instance mysql]# rm /tmp/mysql.sock rm: remove regular empty file ‘/tmp/mysql.sock’ yes
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 3/10/10
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇阿里云服务器上安装mysql并开启远.. 下一篇Centos7系统下安装Mysql教程

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目