Created
June 13, 2014 16:07
-
-
Save napsternxg/547f2650965b6a7712a0 to your computer and use it in GitHub Desktop.
Save current SQL interactive session to file
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 --user=root --password=root --tee=./SQLSession.out | |
# To start the logging to the given file from the session use | |
# mysql> \T | |
# Logging to file ./SQLSession.out | |
# To stop logging use | |
# mysql> \t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment