重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1666|回复: 1
打印 上一主题 下一主题

[命令及语法] xtrabackup备份mysql容器

[复制链接]
跳转到指定楼层
楼主
发表于 2023-6-2 17:41:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 huangte 于 2023-6-2 17:41 编辑

背景:1、在宿主机系统上安装的xtrabackup( version 8.0.31-24 based on MySQL server 8.0.31 Linux (x86_64) )         
2、宿主机上有docker 容器mysql(8.0.31 MySQL Community Server - GPL),容器已做了存储持久化。
用xtrabackup备份mysql容器报错,日志如下:
xtrabackup version 8.0.31-24 based on MySQL server 8.0.31 Linux (x86_64) (revision id: f0754edb)
230602 11:15:30  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=127.0.0.1;port=12306' as 'root'  (using password: YES).
230602 11:15:30  version_check Connected to MySQL server
230602 11:15:30  version_check Executing a version check against the server...

# A software update is available:
230602 11:15:33  version_check Done.
2023-06-02T11:15:33.090064+08:00 0 [Note] [MY-011825] [Xtrabackup] Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 12306, socket: not set
2023-06-02T11:15:33.131293+08:00 0 [Note] [MY-011825] [Xtrabackup] Using server version 8.0.31
2023-06-02T11:15:33.195751+08:00 0 [Note] [MY-011825] [Xtrabackup] Executing LOCK INSTANCE FOR BACKUP ...
2023-06-02T11:15:33.207000+08:00 0 [Note] [MY-011825] [Xtrabackup] uses posix_fadvise().
2023-06-02T11:15:33.207101+08:00 0 [Note] [MY-011825] [Xtrabackup] cd to /var/lib/mysql
2023-06-02T11:15:33.207133+08:00 0 [Note] [MY-011825] [Xtrabackup] open files limit requested 0, set to 65535
2023-06-02T11:15:33.207221+08:00 0 [Note] [MY-011825] [Xtrabackup] using the following InnoDB configuration:
2023-06-02T11:15:33.207296+08:00 0 [Note] [MY-011825] [Xtrabackup] innodb_data_home_dir = .
2023-06-02T11:15:33.207305+08:00 0 [Note] [MY-011825] [Xtrabackup] innodb_data_file_path = ibdata1:12M:autoextend
2023-06-02T11:15:33.207345+08:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_group_home_dir = ./
2023-06-02T11:15:33.207357+08:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_files_in_group = 2
2023-06-02T11:15:33.207371+08:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_file_size = 50331648
2023-06-02T11:15:33.288759+08:00 0 [Note] [MY-011825] [Xtrabackup] inititialize_service_handles suceeded
2023-06-02T11:15:33.448735+08:00 0 [ERROR] [MY-013894] [InnoDB] Found redo log file ./ib_logfile0 which has format (v103) and is stored outside #innodb_redo.
百度了后,有说法是xtrabackup和mysql需要在同一个容器里?






分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2023-6-3 17:36:02 | 只看该作者
xtrabackup 就是一个物理备份,应该放在一处。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-24 20:46 , Processed in 0.097046 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表