U use zend or xampp? either way, just extract a website template into your htdocs folder in zend or xampp. Then open includes folder > inc.config and find the database connection stuff. Ex:
$config['db']['game'] = array( 'host' => '(local)',
'db' => 'gamedb',
'user' => 'sa',
'pass' => '' );
$config['db']['account'] = array( 'host' => '(local)',
'db' => 'accountserver',
'user' => 'sa',
'pass' => '' );
Configure host (local) to your hamachi ip so it will be => 'yourHamachiIP'
db = your database name for gamedb (usually gamedb unless you called it something else)
user = the user you attach the database as.
pass = the pass that you made or assigned to the user (most people use passgen.exe to generate a custom password)
That should be all. Try and see if it works.