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

Link to comment
Share on other sites

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.

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.