Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. 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 moved my bin-logs to a different folder:

log-bin = /storage/mysql/bin-log
log-bin-index = /storage/mysql/bin-log.index

When I try to start mysqld I get this:

/usr/libexec/mysqld: File '/storage/mysql/bin-log.index' not found (Errcode: 13)

Permissions for the files and directory are fine, sudo -u mysql touch /storage/mysql/bin-log.index is working fine and there is no apparmor installed.

Any ideas what could cause this?

share|improve this question

migrated from Feb 6 '12 at 18:14

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

SELinux was installed and it didn't allow access to those files.

Disabling it solves the problem.

share|improve this answer
For Ubuntu users it is probably AppArmor. Edit /etc/apparmor.d/usr.sbin.mysqld and add TWO lines: the path and the path with a wildcard, both rw. – ColinM Jan 19 '13 at 7:18

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.