Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 a directory in ubuntu. I need to have it look like the below.

drwx------  2 mysql root      4096 Feb  4 15:18 mysql

Right now it is

drwx------  2 root root      

Is this a chown command?

I am trying to move the data directory for mysql to /data/my

share|improve this question

closed as not a real question by mgorven, mdpc, kce, Ward, Khaled Feb 5 '13 at 7:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Does it really look like that? If it has no size / timetamp or name then there's something very wrong with your filesystem. – symcbean Feb 4 '13 at 15:46
Not knowing the chown command speaks volumes about your inexperience with Linux. If this new database install is to be used in a professional manner (which we can all safely assume), then I would suggest you have someone with more experience look over your setup when you're done. If one of my employees were to ask this question, my response would be "Whatever you're doing... don't!" If it's something you have to do, good luck. Ubuntu has great documentation for those that are new to Linux. I highly suggest it. – Safado Feb 4 '13 at 15:55
up vote 2 down vote accepted

Yes. chown mysql mysql

But why do you need this? Installing MySQL on Ubuntu adapts the permissions during installation.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.