From 237b2e786eec1c5ebf0323f0911a588afa95e2b2 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 12 Jun 2025 14:26:10 +0200 Subject: [PATCH] feat: order mysql arguments --- docs/linux/mysql-backup.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/linux/mysql-backup.md b/docs/linux/mysql-backup.md index bf008a5..d49447e 100644 --- a/docs/linux/mysql-backup.md +++ b/docs/linux/mysql-backup.md @@ -47,25 +47,25 @@ if [ -f "$BACKUP_FILE" ]; then fi # perform database dump with optimized settings for minimal locking -# --single-transaction: Uses consistent read for InnoDB tables -# --routines: Include stored procedures and functions -# --triggers: Include triggers +# --extended-insert: Use multiple-row INSERT syntax for faster restores # --lock-tables=false: Don't lock tables (relies on single-transaction) # --quick: Retrieve rows one at a time rather than buffering entire result set -# --extended-insert: Use multiple-row INSERT syntax for faster restores +# --routines: Include stored procedures and functions +# --single-transaction: Uses consistent read for InnoDB tables +# --triggers: Include triggers mysqldump \ -h "$MYSQL_HOST" \ -P "$MYSQL_PORT" \ -u "$MYSQL_USER" \ -p"$MYSQL_PASS" \ - --single-transaction \ - --routines \ - --triggers \ - --lock-tables=false \ - --quick \ - --extended-insert \ - --no-tablespaces \ --default-character-set=utf8mb4 \ + --extended-insert \ + --lock-tables=false \ + --no-tablespaces \ + --quick \ + --routines \ + --single-transaction \ + --triggers \ "$DATABASE_NAME" > "$TEMP_BACKUP_FILE" # check if mysqldump completed successfully