Software >> Services >> RDBMS >> Mysql >>  How to show or set the global variables such as general log

To show:

mysql> SHOW GLOBAL VARIABLES WHERE variable_name = 'general_log';

To set:

mysql> SET GLOBAL general_log=1;