title: Mac MySQL data folder access denied
body: <p>My MySQL data directory is located at <code>/usr/local/mysql/data</code>
  When I view it in finder I get this:</p>
  <p><img src="https://i.stack.imgur.com/WjlAd.png" alt="Finder Screenshot" /></p>
  <p>When I try to open the data folder I get an <em>access denied</em> error.</p>
  <p>Via the terminal I can execute the command <code>sudo cd /usr/local/mysql/data</code> without errors, yet I don't enter the data directory. <code>ls</code> gives back the contents of my root dir.</p>
  <p>The same bevahiour occurs with the command <code>sudo cd /usr/local/mysql/data/firma</code> (&quot;firma&quot; is a existing database name)</p>
  <p>However when I write some nonsense instead of &quot;firma&quot;, it gives me an error, thus I'm in the correct directory. I can also view the file size of said firma directory / file.</p>
  <p><em>How can I view all the files in the data directory?</em></p>