Home >Database >Mysql Tutorial >How to Resolve the \'MySQL Socket Directory Missing\' Error in MySQL 5.7.17?
Error: MySQL Socket Directory Missing
Problem:
When starting MySQL server 5.7.17 with mysqld_safe, the following error occurs:
Directory '/var/run/mysqld' for UNIX socket file don't exists.
Cause:
The specified directory for the MySQL UNIX socket file does not exist, preventing the server from starting.
Solution:
mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld
The above is the detailed content of How to Resolve the \'MySQL Socket Directory Missing\' Error in MySQL 5.7.17?. For more information, please follow other related articles on the PHP Chinese website!