Mysqld Unix Socket File Dont Exists Error
Today we will see, how to resolve the error "mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.". This error you may see, when you try to run MySQL in safe-mode.
1: create a mysqld Directory in /var/run Directory.
1mkdir -p /var/run/mysqld
2: change the ownership of that folder:
1chown mysql:mysql /var/run/mysqld
Now, you can try to run mysql in safe-mode without any issue.