Click to See Complete Forum and Search --> : Database for different websites


ketanco
07-01-2008, 03:38 PM
Hi,
I made a website using a database. Now if I make another website hosted with somewhere else, can I use the first site's database for my second website as long as I enter the database name and password etc? Or do I need to migrate that database into the second web host? Can two different websites use the same database?

chazzy
07-01-2008, 07:44 PM
it depends on how the servers are setup. if your server allows external connections AND you create a user that can access from the remote server, then you should be ok.

*note: i'm assuming you're using mysql, since you didn't say.

ketanco
07-02-2008, 10:06 AM
thanks for the answer. yes mysql. what do you mean exactly by creating a user that can access? how and where do you do it?

chazzy
07-02-2008, 04:24 PM
you should probably contact your host at this point, to make sure they are ok with the idea. they should be the ones to provide you the access necessary to create a user.