mysql> show variables like "%general_log%";
+------------------+------------------------------------+
| Variable_name    | Value                              |
+------------------+------------------------------------+
| general_log      | ON                                 |
| general_log_file | /usr/local/var/mysql/CliffyCat.log |
+------------------+------------------------------------+
2 rows in set (0.00 sec)

mysql> SET GLOBAL general_log = 'ON';
Query OK, 0 rows affected (0.00 sec)

mysql> 
tail -f /usr/local/var/mysql/CliffyCat.log

 

posted on 2014-02-25 12:03  ZimZz  阅读(395)  评论(0编辑  收藏  举报