optimize_mysql_tables.sh: minor changes.
This commit is contained in:
parent
0fc3ec06be
commit
9525f9c624
@ -180,6 +180,7 @@ if [ -z "$mysql" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# -------------
|
||||
# - Read Commandline Parameters
|
||||
# -------------
|
||||
@ -258,7 +259,7 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
echo ""
|
||||
echo -e "[ \033[37m\033[1mMySQL $mysql_version\033[m ]: optimize (and repair) tables of databases at host '$(hostname -f)'."
|
||||
fi
|
||||
echo -e "[ MySQL $mysql_version ]: optimize (and repair) tables of databases at host '$(hostname -f)'." > $log_file
|
||||
echo -e "[ MySQL $mysql_version ]: optimize (and repair) tables of databases at host '$(hostname -f)'." > $log_file
|
||||
|
||||
if [[ -z "$DATABASES" ]] ; then
|
||||
DATABASES="$($mysql $mysql_credential_args -N -s -e "show databases")"
|
||||
@ -331,7 +332,6 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
echo -e " [$(date)] error: Repairing table '$table' failed of database \"$db\" failed..\n$(cat "$tmp_log_file")" >> $log_file
|
||||
echo "" >> $log_file
|
||||
|
||||
|
||||
else
|
||||
|
||||
echo -e " [$(date)] Optimize table '$table'" >> $log_file
|
||||
|
Loading…
Reference in New Issue
Block a user