Xtrabackup version : 8.0.35
Mysql Server: 8.0.35
Running mode:Docker in k8s
my run command: xtrabackup --compress --backup --datadir=/var/lib/mysql/ --target-dir=“$target_dir” --host=mysql --port=3306 --user=root --password=qweasdQWEASDzXc
Error message:
2024-07-04T00:53:23.474726-00:00 0 [Note] [MY-011825] [Xtrabackup] Executing FLUSH NO_WRITE_TO_BINLOG BINARY LOGS
xtrabackup: Unknown error 1158
2024-07-04T00:53:23.475175-00:00 0 [ERROR] [MY-011825] [Xtrabackup] failed to execute query ‘FLUSH NO_WRITE_TO_BINLOG BINARY LOGS’ : 2013 (HY000) Lost connection to MySQL server during query
What should i do