On Yosemite, starting MySQL gives the following error:
The server quit without updating PID file
I have seen this question here and i have found the solution
sudo chown -R mysql /usr/local/var/mysql/
But Can anyone please explain me why this solved the problem? And why the problem was raised in the first place?