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-3915 Update columnstore install and uninstall procedure
This commit is contained in:
@ -5,13 +5,6 @@
|
||||
# Post-install steps for calpont-mysql install
|
||||
|
||||
# check if running systemd
|
||||
running_systemd() {
|
||||
if [ "$(ps --no-headers -o comm 1)" == "systemd" ]; then
|
||||
echo 0
|
||||
else
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
||||
# check log for error
|
||||
checkForError() {
|
||||
@ -63,20 +56,6 @@ done
|
||||
# Install various Calpont stuff...
|
||||
install_mcs_mysql.sh --tmpdir=$tmpdir
|
||||
|
||||
# Restart MariDB, otherwise engine does not show up.
|
||||
# Test we are using systemd
|
||||
systemctl cat mariadb.service > /dev/null 2>&1
|
||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
||||
systemctl restart mariadb.service > /dev/null 2>&1
|
||||
else
|
||||
pkill mysqld
|
||||
sleep 2
|
||||
export MYSQL_OPTS="--skip-grant-tables"
|
||||
/usr/bin/mysqld_safe --skip-grant-tables &
|
||||
unset MYSQL_OPTS
|
||||
fi
|
||||
sleep 5
|
||||
|
||||
checkForError
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: Invalid password in .my.cnf, or Columnstore plugin install missing"
|
||||
|
Reference in New Issue
Block a user