Jump to content

Two different sites (network) that I want to use same tables


scrubbicus

Recommended Posts

So I'm going to be making a network of websites and each of these individual websites I will want to use some of the same tables. I'm wondering if I should make one database for all the sites or make seperate databases for each website and then a database for all the information that each website will share.

 

I've never tried to connect to two databases before I'm just curious which method will be best to approach something like this. Each website won't have that many tables so if I used one database it won't be super large.

Link to comment
Share on other sites

if you're on shared hosting, alot of the time they disallow remote connections.. if you make 12 sites, host them all on the same hosting package.. then it should work with no problem.

 

If you are on a shared network and you absolutely MUST put each website on another hosting, than you might experience some problems.

 

anything other than shared I think allows remote connections :)

Link to comment
Share on other sites

Well no it wouldn't be on seperating hosting it would all be on the same host in the same MySQL just different databases. So I could connect to any of the databases through a simple mysql_select_db() but do I want to be selecting databases throughout my script or should I just use the same database for all the websites?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.