Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.