-------------------------------------
log-bin=mysql-bin
binlog_cache_size = 1M
max_binlog_size = 100M
expire_logs = 7
-------------------------------------
/etc/init.d/mysqld restart -> 데몬 재시작으로 적용한다.
# slow-log # --> 설정방법
vi /etc/my.cnf
-------------------------------------
long_query_time=2
log-slow-queries=/usr/local/mysql/log/mysql_slow_query.log
-------------------------------------
/etc/init.d/mysqld restart -> 데몬 재시작으로 적용한다.