I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data. It is setup like this:
20GB -> / (root) 180GB -> /home
I do a lot of development work, so I have my /var/www folder symlinking to /home/valorin/workspace. But I want to do this with my MySQL data files as well, as I am getting annoyed that each time I reinstall my machine I need to do a full SQLdump and then restore all the DB's before I can do more work.
What is the best way to do this without breaking MySQL?