title: MariaDB - Error log configuration?
body: <p>I have MariaDB in my Debian 7 and would like to know why mysql suddenly stop. I should edit <code>my.cnf</code> and define the path of error log file.</p>
  
  <p>According to <a href="http://ronaldbradford.com/blog/monitoring-mysql-the-error-log-2009-09-16/" rel="noreferrer">this</a> I should put <code>log-error = /path/to/error/log</code> under <code>[mysqld_safe]</code> and <code>[mysqld]</code>.</p>
  
  <p>But according to <a href="https://unix.stackexchange.com/questions/89228/mysql-log-confusion">this</a> I should put <code>log_error = /path/to/error/log</code> under <code>[mysqld]</code>.</p>
  
  <p>So, which is the correct way? <code>log-error</code> or <code>log_error</code> ?</p>