Mysql not launching: /data/user.local.err: Permission denied
<p>I have just installed mysql on mac 10.6, and it will not launch.
When I launch it the traditional way, I get the following:</p>

<pre><code>Starting MySQL........
</code></pre>

<blockquote>
  <p>ERROR! The server quit without updating PID file
  (/usr/local/mysql/data/user.local.pid).</p>
</blockquote>

<p>I followed some other instructions online and deleted my custom my.cnf
file and executed this command:</p>

<pre><code>sudo chown -R _mysql:_mysql /usr/local/mysql/
</code></pre>

<p>Then tried to launch it in safe mode, to which I received the following list of errors:</p>

<pre><code>160414 12:48:18 mysqld_safe Logging to '/usr/local/mysql/data/user.local.err'.
touch: /usr/local/mysql/data/user.local.err: Permission denied
160414 12:48:18 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
/usr/local/mysql/bin/mysqld_safe: line 129: /usr/local/mysql/data/user.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 166: /usr/local/mysql/data/user.local.err: Permission denied
160414 12:48:18 mysqld_safe mysqld from pid file /usr/local/mysql/data/user.local.pid ended
/usr/local/mysql/bin/mysqld_safe: line 129: /usr/local/mysql/data/user.local.err: Permission denied
</code></pre>

<p>How can I get it working? </p>