Mobile Phones - Montana Music - Adverse Credit Remortgage - Loan - Life Insurance

PDA

View Full Version : 5 sites on same database?


Shile
Oct 3rd 2005, 10:45 am
I have 5 sites with name of its own..I use one apartment search script...and I just want that all of those sites read from same database!
So I just must replace $db_server = "localhost"; with something else....i dont know what!

if someone knows please post..
TNX

imaginemn
Oct 3rd 2005, 11:14 am
Have you tried using the IP address where the database is residing on?

WhatiFind
Oct 3rd 2005, 11:33 am
Just use the url given by the hostingparty. For instance: mysql41.yourhosting.com

MiamiHost
Oct 4th 2005, 4:18 am
are these sites on the same server?

Shile
Oct 4th 2005, 4:26 am
Yes...I have 5GB reseller package...

MiamiHost
Oct 4th 2005, 4:58 am
you set up the database for one site

Then for each script use on each site:

$db_server = "localhost";
$dbname= 'database_name';
$db_user = 'database_user';
$dbpass = 'database_pass';

Those settings should be the same for all sites and only one database should exist.