MySQL 5.1.54 Ubuntu 11.04
I\'am try to change bin log directory in my.conf as:
[mysqld] log_bin=/home/developer/logs/mysql/mysql-bin.log
During replication configuration in "my.cnf" file needs to mention
server-id=1 log_bin=/var/log/mysql/mysql-bin.log
you can make your own directory and give permission. create directory "mysql" in /var/log/
chmod 777 mysql
this is applicable with MySQL version 5.7