Files
tidb/dumpling/tests/_utils/run_sql_file
2021-10-26 11:06:48 +08:00

16 lines
292 B
Bash
Executable File

#!/bin/sh
#
# Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0.
set -e
echo "[$(date)] Executing SQL file: $1"
mysql \
-u "$DUMPLING_TEST_USER" \
-h 127.0.0.1 \
-P "$DUMPLING_TEST_PORT" \
--default-character-set=utf8mb4 \
--database="$DUMPLING_TEST_DATABASE" \
-E < "$1"