MySQL Error : mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.

0

Error :
  1. mysqld_safe Logging to '/var/log/mysql/error.log'.
  2. mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.
Fix :
 
  1. mkdir -p /var/run/mysqld
  2. chown mysql:mysql /var/run/mysqld