show variables like 'general_log%';
set global general_log=on;
mysql http://blog.xqlee.com/article/354.html