You do not provide any technical details, but your access to the old database will work only if you use the same version of Moodle on the new site. Furthermore, for login to work, you must have the old salt in the new config.php.
Forum
server migration - new installation + old database
This discussion has been locked so you can no longer reply to it.