hi,
fairly new to mysql.
i have been working on a site which would have say 100 + agents.
basically the agents clients are their own so i thought the best way would be to get a dedicated server and create a mysql database for each agents company.
the database would be the same for each, well slight differences to 1 or 2 tables but the basics the same.
i had thought i would have say "companyname.domain.com" then "companyname1.domain.com"
first of i have 2 questions really.
1. is this ok to have setup on a dedicated server? having that amount of sub domains and with their own mysql database?
2. what is the restrictions to a mysql database? the hosting company said it is down to hardware on the server? so say it was a dual core linux machine with 4gb ram and 160gb sata hard drive, what would be the size limit for each database if there is one?
hope someone can help me as i have the idea just not sure if it is best practice to do it this way.
many thanks
Frankly i don't much have experience in MySQL database but from database architecture point of view i suggest like this:
1. use only one database for all user it is much easier to maintain the data integrity
2. Determine common table and ensure that each site has the same description of the table, resolved all discrepancies
3. use agent id to determine the record for each agents
4. only the headquarter may change common table the agents if needed use extra table
5. standardize the name of extra table to contain code of agents
6. agents can only propose the change on common table
using this way u will save a lot of space, time and cost to maintain control of data and the whole application
for the size of the server i think it is not adequate to host this type of domain
u can also restrict access the database such that each agents can only access their data and common reference table