MySQL - mysqld: Can't create/write to file и can't create PID file: No such file or directory


Материал из Wiki - Iphoster - 'the best ever support'

Перейти к: навигация, поиск

Самые выгодные сервера в рунете


MySQL - mysqld: Can't create/write to file и can't create PID file: No such file or directory

Ошибка вида

160324  4:33:23 [ERROR] mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2)
160324  4:33:23 [ERROR] Can't start server: can't create PID file: No such file or directory
160324 04:33:23 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended


решается так:

# mkdir -p /var/run/mysqld
# chown mysql:mysql /var/run/mysqld && chmod 755 /var/run/mysqld

и рестарт mysql

Индекс цитирования