Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Have added the directive in my.cnf

log-bin

Both the binlog and index files are created, but seems the binlog file remain unchanged even I massively insert data into the db.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

This may be a wild guess, but it sounds like this is either a secondary master or slave host? Add the following line to your my.cnf and restart mysqld:

log-slave-updates
share|improve this answer

One possibility might be that if you are inserting into a transactional table but have not committed the data yet with a COMMIT statement all those inserts would be cached.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.