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

I have recently installed MSQL for a Rails App. After some tinkering, I have an error starting mysql now that reads as follows:

Warning: The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user.

share|improve this question

migrated from stackoverflow.com May 24 '11 at 12:46

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

"Not a programming question." –  Anonymous May 22 '11 at 21:26

1 Answer 1

in terminal as root (or do sudo + below command):

chown -R mysql:mysql /usr/local/mysql/data
share|improve this answer
Thanks! It worked! –  Anonymous May 22 '11 at 21:33
Glad that worked for you, but on numerous OS's like 10.6 you actually want to make sure and use the _mysql user/group. –  quest May 23 '11 at 3:08

Your Answer


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