Jump to content

Multiple databases for my tables?


LanceT

Recommended Posts

Is there any way I can have multiple databases, each located on different servers handling one application? For example, maybe each table will have its own database on its own server? How do I do this exactly?

 

I am connecting using

 

$db1= mysql_connect ("$dbhost", "$dbusername", "$dbpassword") 	
or die ('I cannot connect to the database.');
mysql_select_db("$dbname", $db1);

 

which is located in my config.php

 

Thanks for your input.

Link to comment
https://forums.phpfreaks.com/topic/69603-multiple-databases-for-my-tables/
Share on other sites

  • 2 weeks later...

No each database will not be a clone.

 

Each database will only contain a single table, so I'm guessing that means that the tables are spread out across multiple servers. I'm doing this because I want to plan for the future if I will need more system resources.

Each database will only contain a single table, so I'm guessing that means that the tables are spread out across multiple servers. I'm doing this because I want to plan for the future if I will need more system resources.

 

IMHO, that's not even remotely required.

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.