MySQL Datadir unter Ubuntu Linux verschieben
1. Datenbanken kopieren
cp -R /var/lib/mysql /my/dir
2. mysql-Settings anpassen
vi /etc/mysql/my.cnf
datadir= /my/dir
3. apparmor-Settings anpassen
vi /etc/appamor.d/usr.sbin.mysqld
/my/dir/ r,
/my/dir/** rwk,
4. Dienste neustarten
/etc/init.d/apparmor restart
/etc/init.d/mysql restart