Check whether mysql has enabled binlog.
View commands:
show variables like '%log_bin%';
log_bin OFF is the off state.
Edit my.cnf configuration file
vim /etc/my.cnf
Default configuration file content:
Add the following content
server_id = 1
binlog_format = ROW
log-bin = mysql_log_bin
restart mysql:
Restart command:
service mysql restart
Results of the:
Check again to see if binlog is enabled in mysql.
It's over, you're done.