Browse Source

for purge

stanley-king 3 years atrás
parent
commit
27d13bb575
1 changed files with 5 additions and 4 deletions
  1. 5 4
      util/purge.sh

+ 5 - 4
util/purge.sh

@@ -89,11 +89,12 @@ done
 
 today=$(date "+%Y-%m-%d")
 command="PURGE master LOGS BEFORE '${today} 00:00:00';"
+echo $command
 
 # shellcheck disable=SC2068
-for host in ${allhosts[@]}
-do
-  mysql -uroot -pXTZ@shop@951688 --host=$host -e "$command"
-done
+#for host in ${allhosts[@]}
+#do
+#  mysql -uroot -pXTZ@shop@951688 --host=$host -e "$command"
+#done