Super User is a question and answer site for computer enthusiasts and power users. 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 need to copy files in /var/lib/mysql/database/* yo another dir with admin user. File in /var/lib/mysql/database has 660 mysql:mysql

I already add admin user to mysql group, but it didn't work.

share|improve this question

Copy the files using root:

sudo cp -r /var/lib/mysql/database/ /path/to/destination/here/

root is the only real admin user, all of the other "admin" users on a system just have permission to pretend to be root, but aren't actually admins themselves.

share|improve this answer

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.