#!/bin/bash pwprompt=" " for arg in "$@"; do if [ `expr -- "$arg" : '--tmpdir='` -eq 9 ]; then tmpdir="`echo $arg | awk -F= '{print $2}'`" else echo "ignoring unknown argument: $arg" 1>&2 fi done if [[ -f /etc/mysql/debian.cnf ]]; then MDB="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf" else MDB="/usr/bin/mysql" fi log_error() { echo "Error: $1" >> ${tmpdir}/mysql_install.log exit 1 } # DELETE libcalmysql.so entries first as they are in ha_columnstore.so in 1.4.2 onwards $MDB 2> ${tmpdir}/mysql_install.log </dev/null if [ $? -ne 0 ]; then log_error "Failed to execute calsetuserpriority.sql." fi $MDB <@ENGINE_SUPPORTDIR@/calremoveuserpriority.sql 2>/dev/null if [ $? -ne 0 ]; then log_error "Failed to execute calremoveuserpriority.sql." fi $MDB <@ENGINE_SUPPORTDIR@/calshowprocesslist.sql 2>/dev/null if [ $? -ne 0 ]; then log_error "Failed to execute calshowprocesslist.sql." fi $MDB <@ENGINE_SUPPORTDIR@/columnstore_info.sql 2>/dev/null if [ $? -ne 0 ]; then log_error "Failed to execute columnstore_info.sql." fi