User user658991 is responding halfway.
After adding the soft link, you will need to add the following line to /etc/apparmor.d/usr.sbin.mysqld under two lines in the old mysql folder.
/path/to/mysql/folder/on/the/external/ r /path/to/mysql/folder/on/the/external/ ** rwk
Without these two lines, MySQL cannot start complaining:
Can't create test file /path/to/mysql/folder/on/the/external/hostname.lower-test Can't create test file /path/to/mysql/folder/on/the/external/hostname.lower-test mysqld: Can't change dir to '/path/to/mysql/folder/on/the/external/' (Errcode: 13)
Restart apparmor for the change to take effect.
sudo invoke-rc.d apparmor restart
In this case, MySQL starts normally.
source share