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'm trying to move my mysql data files to another folder. So far, I have:

  • cp'ed all folders (not files) from /var/lib/mysql to /my/new/path
  • chown (recursively) /my/new/path to mysql:mysql
  • corrected entries in /etc/apparmor.d/usr.sbin.mysqld (two lines)
  • corrected datadir in /etc/mysql/my.cnf
  • service apparmor restart, service mysql restart

And still, the /var/log/mysql/error.log says it can't create the /my/new/path/manisto-desktop.pid. What am I missing here? By the way, I'm running Ubuntu 10.10.

EDIT: The exact error is:

[ERROR] /usr/sbin/mysqld: Can't create/write to file '/my/new/path/manisto-desktop.pid' (Errcode: 13)
share|improve this question
add comment

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