When I am trying to check binary log:
SHOW BINARY LOGS;
ERROR 1381 (HY000): You are not using binary logging.
log-bin variable in your MySQL configuration file, then restart MySQL.
my.cnf (on Linux/unix) or
my.ini (on Windows) would look like:
[client] ... [mysqld] ... log-bin=mysql-bin ---
Once restarted, MySQL automatically creates a new binary log (does so upon every restart). You may also wish to look at the following variables:
server-id = 1 expire_logs_days = 4 sync_binlog = 1