On Linux, this can be painless using simple symbolic links:
1) first check in my.cnf [/etc/mysql/my.cnf] for database files destination. 2) let say that destination is in folder /var/lib/mysql/ and yours database name is "abccompany" 3) stop mysql database 4) move folder [var/lib/mysql/abccompany] to new destination (let say "/diskY") 5) make symbolic link: ln -s /diskY/abccompany abccompany 6) start mysql database and everything should work just fine.
source share