Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was working to update a server, and accidentally set the entire var directory's owner to root.. This only really affected the mysql server, and I was wondering if anyone can tell me which files were affected. I believe the mysql server only had a group (named mysql). Thanks for any help, Max

Edit The error message I'm getting

[ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysqld/' (Errcode: 13)
[ERROR] Can't start server: can't create PID file: Permission denied
share|improve this question
Have you tried starting the server and looking at the error messages? – Ignacio Vazquez-Abrams Mar 12 '11 at 9:53
thanks for the catch, the error I'm getting is with the permissions to /var/run/ directory. I'm guessing that is the only directory really affected (as it also broke screen). – Ben Mar 12 '11 at 9:57
up vote 0 down vote accepted

Do a chown -R mysql:mysql /var/run/mysql that should fix this.

share|improve this answer
Haha, thanks for putting me on the right track, it was actually the permission on the /var/run folder itself. (crosses fingers, hopes database can write) – Ben Mar 12 '11 at 10:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.