You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-520 - move mysql_upgrade
This commit is contained in:
@ -160,7 +160,7 @@ if [ $module = "um" ] || ( [ $module = "pm" ] && [ $PMwithUM = "y" ] ) || [ $Ser
|
||||
fi
|
||||
|
||||
echo "Run post-mysqld-install"
|
||||
$COLUMNSTORE_INSTALL_DIR/bin/post-mysqld-install --installdir=$COLUMNSTORE_INSTALL_DIR $mysqlPassword > ${tmpDir}/post-mysqld-install.log 2>&1
|
||||
$COLUMNSTORE_INSTALL_DIR/bin/post-mysqld-install --installdir=$COLUMNSTORE_INSTALL_DIR $mysqlPassword --tmpdir=${tmpDir} > ${tmpDir}/post-mysqld-install.log 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: post-mysqld-install failed: check ${tmpDir}/post-mysqld-install.log"
|
||||
exit 1
|
||||
|
@ -45,6 +45,8 @@ prefix=/usr/local
|
||||
installdir=$prefix/mariadb/columnstore
|
||||
rpmmode=install
|
||||
password=" "
|
||||
tmpdir="/tmp"
|
||||
|
||||
for arg in "$@"; do
|
||||
if [ $(expr -- "$arg" : '--prefix=') -eq 9 ]; then
|
||||
prefix="$(echo $arg | awk -F= '{print $2}')"
|
||||
|
@ -8,6 +8,7 @@ prefix=/usr/local
|
||||
installdir=$prefix/mariadb/columnstore
|
||||
rpmmode=install
|
||||
user=mysql
|
||||
tmpdir="/tmp"
|
||||
|
||||
password=" "
|
||||
pwprompt=
|
||||
@ -30,6 +31,8 @@ for arg in "$@"; do
|
||||
user="`echo $arg | awk -F= '{print $2}'`"
|
||||
elif [ $(expr -- "$arg" : '--password=') -eq 11 ]; then
|
||||
password="$(echo $arg | awk -F= '{print $2}')"
|
||||
elif [ $(expr -- "$arg" : '--tmpdir=') -eq 9 ]; then
|
||||
tmpdir="$(echo $arg | awk -F= '{print $2}')"
|
||||
else
|
||||
echo "post-mysqld-install: ignoring unknown argument: $arg" 1>&2
|
||||
fi
|
||||
|
Reference in New Issue
Block a user