cannot find mysql slow query log file on mac
<p>I am trying to enable slow_query_log on mysql, but I could not find it on my mac.
I read in <a href="http://dev.mysql.com/doc/refman/5.7/en/server-logs.html" rel="nofollow noreferrer">MySQL 5.7 Documentation</a> that"</p>

<blockquote>
  <p>By default, the server writes files for all enabled logs in the data directory. </p>
</blockquote>

<p>When I write <code>show variables like '%slow_query%';</code> in mysql shell, I see the following:</p>

<p><a href="https://i.stack.imgur.com/eASxG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eASxG.png" alt="enter image description here"></a></p>

<p>but I can't see <code>McBook-Pro-6-slow.log</code> in the data directory. Here is all I can see in the data directory:</p>

<p><a href="https://i.stack.imgur.com/LAMm3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LAMm3.png" alt="enter image description here"></a></p>

<ol>
<li>Could someone let me know why I can't see the slow log file?</li>
<li>In order to enable the slow_query_log, I've read here that I should add <code>slow-query-log=1</code> to my.cnf. Here, my problem is that I am not sure where is mysql config file on my Mac. I've found a <code>my-default.cnf</code> in <code>usr/local/mysql/support-files/</code> and another <code>my.cnf</code> file in <code>/etc</code>. Which one should I modify??</li>
</ol>

<p>Thanks,</p>