If they are in the same account does that mean they both have access to the same db? If you log into your site with ftp and they are both in the same area, then I would think you could use the same mysql_connect data in each site and it should work.
The best advice is to try it out. :)
Just use the same user/pass and then try connecting to mysql.