mysql log information to view and set the mysql-bin

View sql query logging is turned on

SHOW  GLOBAL VARIABLES LIKE '%general_log%'

Whether to open the binary log

SHOW  GLOBAL VARIABLES LIKE '%general_log%';

On and off the binary log

# Change the configuration file need to restart mysql, Execute a statement directly modify the need to restart MySQL 

the SET SQL_LOG_BIN =  0        # binary logging to stop
 the SET SQL_LOG_BIN =  1        # turn on binary logging

mysql-bin.000001 delete binary log file method, the following statement (do not delete files)

RESET MASTER

I use the pagoda. I do not know why using the above method does not work. Set in admin panel inside job. With other software built environment should be right above methods, try to be

Guess you like

Origin www.cnblogs.com/qq9836/p/11229444.html