Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 292010
 

Enable MySQL binary log (bin log)

Answer:

The MySQL binary log contains the changes to the database in binary log format. They are useful for

  1. Database recovery
  2. Replication

To enable it, edit the MySQL configurations, e.g. /etc/my.cnf

..
log-bin
..

Don't forget to restart MySQL to take effect.

# /sbin/service mysqld restart

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>