Skip to content

Instantly share code, notes, and snippets.

@jcxk
Created March 24, 2016 08:17
Show Gist options
  • Save jcxk/679075af28b0dfd94423 to your computer and use it in GitHub Desktop.
Save jcxk/679075af28b0dfd94423 to your computer and use it in GitHub Desktop.
mysql_info.sh
mysql -uroot -p -NBe 'SHOW VARIABLES' | sed 's,\t,^=,' | column -ts^ | tr "\n" '@' | eval $(echo "sed '" "s,@\("{a..z}"\),\n\n\1,;" "'") | tr '@' "\n" | sed 's,^,# ,g' | grep timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment