Mysql write ahead logs (bin-logs)

enable mysql bin-logs / write ahead logs (wal)

log_bin #enable bin-logs expire_logs_day=10 #in days max_binlog_size=5M #maximum size binlog_ignore_db=mysql #do not write bin-log for mentioned database
 * 1) log_bin_index= #filename of the index-file
 * 2) binlog_do_db= #enable bin-log just for that db