How to set BINARY LOGS in MAMP using APPLE

Hi there,

I am still starting to learn SQL and currently reading the book PHP & MYSQL Novice to ninja, Chapter 10, page 323 on binary logs.

As I do not properly understand the instructions how to set binary logs I really appreciate your help!

  1. How to create the file my.cnf?
  2. Which editor is best to handle cnf files?
  3. Where and how to use the following command? In the mysql command window or in the computer terminal?

[mysql]
log-bin=/Applications/MAMP/logs/binlog

I basically need clear instructions step by step.

Do I need to consider any pre-setting of folders etc?

Thanks a lot for your help in advance!