PayrollManagementSystem/docker/Dockerfile.backup
liuwenxin ae12403c0b fix(备份): 修复快照位点与轮转期间的增量遗漏
统一跨平台备份入口,校验快照位点、完整性及增量链后隔离恢复。
末个 binlog 按读取位点归档,避免轮转后并发事务被续接跳过。
修复 Windows 安装器的编码、默认路径和花括号路径参数。
2026-11-03 17:18:52 +08:00

8 lines
496 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 官方最小 MySQL 镜像缺少 mysqlbinlog;仅在独立恢复演练镜像内补齐同版本工具。
ARG MYSQL_IMAGE=mysql:8.0.46
FROM ${MYSQL_IMAGE}
ADD https://repo.mysql.com/yum/mysql-8.0-community/el/9/x86_64/mysql-community-client-8.0.46-1.el9.x86_64.rpm /tmp/mysql-client.rpm
RUN echo "decc2c06fac430b7987cfae4e4039cb49bdce56dfadfd0a28738bf0757f04f17 /tmp/mysql-client.rpm" | sha256sum -c - \
&& rpm -i --nodeps --replacefiles /tmp/mysql-client.rpm \
&& mysqlbinlog --version