Importing old mysql data

Greeting all, I hope someone can help a while ago i forgot my password to my site and couldnt get the server to send me a reset password… I tried to imput the password i wanted directly into mysql tables & couldnt login on any accounts. I updated my server & installed the latest version of Matomo on my machine which I have up and running… I have backed up the mysql database so I could import it directly into the new matomo database… Is this possible can i just import the tables i need.? I have it on a VM so i will backup the machine prior to running anything.

PHP version >= 5.5.9 7.4.1
Apache 2
The instance is hosted locally.

Many thanks,