From 83dafde6caf79f9d8a8b7cfc7747cee473404790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=8D=E7=BC=96=E8=AF=91=E5=B7=A5=E4=BD=9C=E5=8C=BA?= Date: Fri, 1 May 2026 20:56:21 +0800 Subject: [PATCH] fix: escape MySQL backtick quotes in prepare-db.sh (double-backslash -> single) Former-commit-id: 0ffd939b7bc3ddeb9810bbdd31fb2768189d2309 --- scripts/test-env/prepare-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/test-env/prepare-db.sh diff --git a/scripts/test-env/prepare-db.sh b/scripts/test-env/prepare-db.sh old mode 100644 new mode 100755 index dacfb19c..80ed46d2 --- a/scripts/test-env/prepare-db.sh +++ b/scripts/test-env/prepare-db.sh @@ -40,7 +40,7 @@ for db_name in "${!DB_MAP[@]}"; do log_info "Restoring $db_name from $backup_file ($(du -h "$backup_path" | cut -f1))..." # Create DB if not exists - $MYSQL_CMD -e "CREATE DATABASE IF NOT EXISTS \\`$db_name\\` DEFAULT CHARACTER SET utf8mb4;" + $MYSQL_CMD -e "CREATE DATABASE IF NOT EXISTS \`$db_name\` DEFAULT CHARACTER SET utf8mb4;" # Import zcat "$backup_path" | $MYSQL_CMD "$db_name" 2>&1 | tail -1