You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-15 22:22:17 +03:00
25 lines
932 B
Bash
Executable File
25 lines
932 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$MYSQLCMD" ]; then
|
|
MYSQLCMD="/usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root"
|
|
export MYSQLCMD
|
|
fi
|
|
|
|
echo "Creating tpch1tc, nightly100, and ssb100c databases."
|
|
$MYSQLCMD -vvv -e "create database if not exists tpch1tc; create database if not exists nightly100; create database if not exists ssb100c;"
|
|
|
|
echo "Dropping and creating tpch1tc tables."
|
|
$MYSQLCMD tpch1tc -vvv < /root/genii/mysql/scripts/create_tpch_8byte.sql
|
|
|
|
echo "Dropping and creating ssb100c tables."
|
|
$MYSQLCMD ssb100c -vvv < /root/genii/mysql/scripts/create_ssb_schema.sql
|
|
|
|
echo ""
|
|
echo "Dropping and creating nightly100.orders table."
|
|
$MYSQLCMD nightly100 -vvv < /root/genii/mysql/scripts/create_tpch_4byte.sql
|
|
$MYSQLCMD nightly100 -vvv -e "drop table lineitem; drop table nation; drop table region; drop table supplier; drop table customer; drop table part; drop table partsupp;"
|
|
|
|
|
|
|
|
|