I am building a website templating system where multiple user can create their own mini-websites. I anticipate the possibility of this system scaling to millions of users. Is it best to store all data for everyone’s mini-site in one MySQL database, or create a separate MySQL database for each user?
What is the setup to handle future scalability to millions of users? What are the pros and cons of each option.
It’s easy to have millions of records in one database, and impossible to handle millions of databases in one (or a few) computer.
If you really have few data for each user, and really plan to have many users, don’t even try to give each user its database. A database is made to grow and handle many records.