You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
24 lines
629 B
Bash
Executable File
24 lines
629 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script does the following:
|
|
# 1) Executes supplied SQL script on test database and captures output to file
|
|
#
|
|
#$1 = Test database name
|
|
#$2 = SQL script to execute
|
|
if [ $# -lt 2 ]
|
|
then
|
|
echo***** Syntax: pfExeSQLScript.sh testDBName scriptFileName
|
|
exit 1
|
|
fi
|
|
#
|
|
logFileName=`basename $2`
|
|
#
|
|
# Execute script on reference database
|
|
#
|
|
# mysql $3 -h$2 -u$4 -p$5 <$6 > $logFileName.test.log
|
|
#
|
|
# Execute script on test database
|
|
#
|
|
/usr/local/mariadb/columnstore/mysql/bin/mysql --defaults-file=/usr/local/mariadb/columnstore/mysql/my.cnf -u root $1 <$2 > $logFileName.test.log
|
|
exit 0
|