How to change MySQL data directory
shakir@anduril:~/Dropbox/Workspace/Apache/mirror/oseems.com$ sudo vi /etc/mysql/my.cnf
shakir@anduril:~/Dropbox/Workspace/Apache/mirror/oseems.com$ sudo /etc/init.d/apparmor restart
* Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
...done.
shakir@anduril:~/Dropbox/Workspace/Apache/mirror/oseems.com$ sudo vi /etc/apparmor.d/usr.sbin.mysqld
shakir@anduril:~/Dropbox/Workspace/Apache/mirror/oseems.com$ sudo /etc/init.d/apparmor restart
* Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
...done.
shakir@anduril:~/Dropbox/Workspace/Apache/mirror/oseems.com$ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld
...done.
* Starting MySQL database server mysqld
...done.
* Checking for tables which need an upgrade, are corrupt or were
not closed cleanly.