MySQL (Percona) and homebrew:

Solution 1:

The log says it all: The script cannot write to the file /usr/local/var/mysql/xxx.local.err due to insufficient permissions.

I assume the log file belongs to a dedicated mysql user while you are starting the process using your user account.