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 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

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

 
discard

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