Login to the Virtualmin Control Panel , click on the Edit Users menu, then "Add a user to this server"
choose a username and password
down into the same page click on "Other user permissions" select the desided database you want to give access to and click on the right arrow
The database will be moved to the "Granted access to" box