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.

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 :)

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.