User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 361,942 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,678 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:

how to use same database for two domains?

Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,774
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 8
Solved Threads: 184
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Monster is back

Re: how to use same database for two domains?

  #4  
Mar 30th, 2008
Originally Posted by RoryGren View Post
There shouldn't be a problem there. Use the same connection details for both domains.

Wrong, because DB
Originally Posted by john777 View Post
for domain2 i like to use the domain1 database(xxx)(it is in diff hosting)

John, you need to ask your provider (from the one with DB) if databases is enabled for external access.
If not ask if it is posible, many providers do it, many refuse it as they do not knnow how
Once external access enabled your provider should also give you details how to connect to DB, can be IP or URL string
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
All times are GMT -4. The time now is 11:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC