Skip to content

Instantly share code, notes, and snippets.

@vidluther
Created April 9, 2013 23:41
Show Gist options
  • Save vidluther/5350416 to your computer and use it in GitHub Desktop.
Save vidluther/5350416 to your computer and use it in GitHub Desktop.
Log MySQL Output
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