read_mysql_config() { # this routine requires a sed, which reads even the last line of input
MY_CONFIG_FILE="$1"# file to read setting from
MY_CONFIG_SECTION="$2"# section inside the file
MY_CONFIG_TAG="$3"# name of the setting inside the section
TAB=`printf "\t"""` # makes the code cut&paste safe
sed -n -f - "$MY_CONFIG_FILE" <<EOF 1,/^\[$MY_CONFIG_SECTION\]/ d
/^\[[a-z]/ q
/^$MY_CONFIG_TAG/ {
s/^$MY_CONFIG_TAG[ $TAB]*=[ $TAB]*\([^ $TAB]*\)/\1/
p
q
}
EOF
}
do_repair_all() {
MY_DATADIR=`read_mysql_config "$MY_CFG""mariadbd""datadir" ` for i in `find "$MY_DATADIR" -name "*.ISM"` do
./bin/isamchk --defaults-file="$MY_CFG" --repair "$MY_DATADIR/$i" done
}
MY_BASEDIR=`read_mysql_config "$MY_CFG""mariadbd""basedir"`
cd "$MY_BASEDIR" || exit 1 while test $# -gt 0 do
MY_ARG="$1"
do_$MY_ARG $@
shift done
Messung V0.5 in Prozent
[Dauer der Verarbeitung: 0.5 Sekunden, vorverarbeitet 2026-10-08]