Created
March 24, 2016 08:17
-
-
Save jcxk/679075af28b0dfd94423 to your computer and use it in GitHub Desktop.
mysql_info.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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