title: Enabling log in MySQL 5.6 prevents server from starting
body: <p>I've installed MySQL 5.6.15 on Mac OSX via Homebrew.</p>
  
  <p>I've added the following lines to <code>my.cnf</code> to enable query logging, but the MySQL server is unable to restart with the new lines. How can we solve the problem?</p>
  
  <p><strong>Added to my.cnf</strong></p>
  
  <pre><code>general_log=1
  log=/var/log/mysql-query.log
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Starting MySQL
  . ERROR! The server quit without updating PID file (/usr/local/var/mysql/me-MacBook-Air.local.pid).
  </code></pre>
  
  <p><strong>Entire my.cnf</strong></p>
  
  <pre><code># For advice on how to change settings please see
  # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
  
  [mysqld]
  
  general_log=1
  log=/var/log/mysql-query.log
  
  # Remove leading # and set to the amount of RAM for the most important data
  # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  # innodb_buffer_pool_size = 128M
  
  # Remove leading # to turn on a very important data integrity option: logging
  # changes to the binary log between backups.
  # log_bin
  
  # These are commonly set, remove the # and set as required.
  # basedir = .....
  # datadir = .....
  # port = .....
  # server_id = .....
  # socket = .....
  
  # Remove leading # to set options mainly useful for reporting servers.
  # The server defaults are faster for transactions and fast SELECTs.
  # Adjust sizes as needed, experiment to find the optimal values.
  # join_buffer_size = 128M
  # sort_buffer_size = 2M
  # read_rnd_buffer_size = 2M 
  
  sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
  </code></pre>