if i remember right i had done this some times ago. But 1) it must be the same version on the old and on the new server 2) think about the rights, and the owner the files must have.
Is the mysql root password identical on the old and new installation, if not, you will ahve to change it in the config.inc.php file.