I'm currently working on a site which will offer a blog for users to write.
My question relates to how to structure the database.
So all of you know how blogs are working. Some user posts an entry and the system puts it in the database. Now to the problem:
Is it better to have thousands of databases for each user and each blog? e.g. User A has a blog with its' entries and photos and got its own database "UserABlog" for it. User B, too, with the database "UserBBlog".
Or is it better to have a single database for all users which has a table for "entries" and "photos", etc. linked to each user via foreign keys? e.g. User A and B got their blogs and their entries and photos are saved in the database "blogs" in the tables "entries" and "photos" with foreign keys linked to User A, B and C.