MySql question

Status
Not open for further replies.

gladi8tor

New member
Apr 17, 2007
159
4
0
Jersey CityNJ
I am using Hostgator w/Cpanel. New to this website design stuff. Here goes: Each time I create a new domain site, do I have to make a new MYSQL database?

I was going to create some YACG sites, and I was wondering if I need to create a new MySql and upload program there?
 


A good way of doing it is beginning everything from each site with:

SiteA_Users
SiteA_Billing

SiteB_Users

etc. etc.

If you want to use one DB, this is the way to keep it organized.
 
I would suggest that instead of creating a bunch of databases or attempting to come up with some naming convention to allow you to create a bunch of tables within the same database, I would just use one database and create relationships on the data. For example, create a table called sites, then when you create the tables, users and billing just add an additional field called site_id to tie the proper records to the proper site.
 
Status
Not open for further replies.