optimize_mysql_tables.sh,optimize_mysql_tables-ND.sh: fix error in writing the logfile.
This commit is contained in:
parent
9525f9c624
commit
7ea7de9990
@ -379,8 +379,8 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
echo -en "\033[1G"
|
||||
fi
|
||||
echo -en "\033[1G \033[32mOptimize table \033[1m$table\033[m$blank_signs\033[1G"
|
||||
echo -e " [$(date)] Optimize table '$table'" >> $log_file
|
||||
fi
|
||||
echo -e " [$(date)] Optimize table '$table'" >> $log_file
|
||||
length_table_name=${#table}
|
||||
|
||||
$mysql $mysql_credential_args $db -N -s -e "OPTIMIZE TABLE \`$table\`" > $tmp_log_file 2>&1
|
||||
|
@ -306,8 +306,9 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
echo -en "\033[1G"
|
||||
fi
|
||||
echo -en "\033[1G \033[32mOptimize table \033[1m$table\033[m$blank_signs\033[1G"
|
||||
echo -e " [$(date)] Optimize table '$table'" >> $log_file
|
||||
fi
|
||||
echo -e " [$(date)] Optimize table '$table'" >> $log_file
|
||||
|
||||
length_table_name=${#table}
|
||||
|
||||
$mysql $mysql_credential_args $db -N -s -e "OPTIMIZE TABLE \`$table\`" > $tmp_log_file 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user