查看log-bin是否开启:mysql> show variables like '%log%bin%';+---------------------------------+-------+| Variable_name | Value |+---------------------------------+-------+| log_bin | ON || log_bin_trust_function_…
一.查看下自己的MySQL是否开启了binlog日志 # 是否启用binlog日志 OFF:关闭 ON:开启 show variables like 'log_bin'; 二.开启binlog日志 在linxu服务器中找到my.cnf : mysql --help | grep 'Default options' -A 1 执行结果 Default options are read from the following files in the given order: /etc/my.cnf…