Migrate DB From Community to Enterprise

Hi guys
I have purchased an enterprise license and i tried to migrate my community edition db to the new server.After the migration i lost access to all accounts.
Any help?