1

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
2
  • Have you tried starting the server and looking at the error messages? Mar 12, 2011 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).
    – Jess
    Mar 12, 2011 at 9:57

1 Answer 1

1

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

1
  • 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)
    – Jess
    Mar 12, 2011 at 10:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .