Error the server quit without updating pid file

sudo chown -R mysql /var/lib/mysql/[*]Take backup of file and remove it. /var/lib/mysql/your_computer_In many cases, removing this error files has also fixed this issue.[*]Check if file has been modified recently.To achieve this, fire following commands: cp /var/lib//var/lib/mysql.sock_bkp rm -rf /var/lib/Now have a try to start My SQL service with following command: /etc/init.d/mysql start[*]Try to find log files with suffix “.err”. If you wish to edit file, it is recommended to take backup so you can restore it if anything goes wrong.

: CGWindow Context Create: failed to create window context delegate.

We're looking for long answers that provide some explanation and context.

Don't just give a one-line answer; explain why your answer is right, ideally with citations.

Answers that don't include explanations may be removed.

For conventional installations, without brew, like mine, the solutions above doesn't worked.

The solution came with the permission repair, using the Utilities Disk App from OS X.Just run the app on your disk, restart, and try again. ps -aux | grep mysql If My SQL services is already running, you will get list of My SQL processes with PIDs. kill -9 PID ……………where PID is the process ID of the My SQL processes.[*]Check ownership of /var/lib/mysql/ Type the following command to check ownership of My SQL service: ls -la F /var/lib/mysql/ If it’s owner is root, you should change it to My SQL or your_user. Type following command to determine if there is My SQL service running already. Let’s check them out one by one:[LIST=1][*]Login to server with root privileges and try to start My SQL service manually. Or…./etc/init.d/mysql start[*]Check if you have already My SQL service running. The server quit without updating PID file (/var/lib/mysql/pid) When you receive these errors on My SQL server, there are lots of solutions available to fix it.