Skip to content

Instantly share code, notes, and snippets.

@IceskYsl
Created September 25, 2012 04:23
Show Gist options
  • Save IceskYsl/3779968 to your computer and use it in GitHub Desktop.
Save IceskYsl/3779968 to your computer and use it in GitHub Desktop.
kill add locked mysql process~
for id in `mysqladmin processlist | grep -i locked | awk '{print $1}'`
do
mysqladmin kill ${id}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment