Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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/mysqld.pid' (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). –  mazzzzz Mar 12 '11 at 9:57
add comment

1 Answer

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) –  mazzzzz Mar 12 '11 at 10:03
add comment

Your Answer

 
discard

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.