Created
April 9, 2013 23:41
-
-
Save vidluther/5350416 to your computer and use it in GitHub Desktop.
Log MySQL Output
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> tee sql_log.sql | |
Logging to file 'sql_log.sql' | |
mysql> select count(1) from wp_options; | |
+----------+ | |
| count(1) | | |
+----------+ | |
| 1792 | | |
+----------+ | |
1 row in set (0.00 sec) | |
mysql> notee; | |
Outfile disabled. | |
mysql> quit | |
bash> cat sql_log.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment