You should not need to access the database.
You setup a new site on a new server. You copy the database to the new site. You setup a db username and password. You copy the site files to the new server.
You go to the address of the new site that you created with /scp appended to the url.
You log in.
You change the setting.
If for some reason you need to access the DB then you wil have to use your favorite 3rd person software to use the username and password and DB host to log into it. I can't really tell you more than that. It would depend on what 3rd party tool you are using to access your DB.