Hi. If domains are on separate servers then you would need a remote DB connection allowed to at least one of them (where DB is located). If you need more specific answer then please specify your request - are both domains on the same server, if yes - are they under 1 account, what hosting type you are using (Windows/*nix), what type of control panel etc.