Is it unreasonable to assign a MySQL database to each user on my site?

前端 未结 10 2093
情歌与酒
情歌与酒 2020-12-03 00:27

I\'m creating a user-based website. For each user, I\'ll need a few MySQL tables to store different types of information (that is, userInfo, quotesSubmitted, and ratesSubmit

10条回答
  •  萌比男神i
    2020-12-03 00:36

    What is the difference between many tables in one database or many databases with same tables? Is it for better security or for different types of backups?

    I m not sure about mySQL but in MSSQL it is like this:

    • If you need to backup databases in different way you need to consider keeping tables in different data files. By default they all are in PRIMARY file. You can specify different storage.

    • All transactions are hold in tempdb. This is not very good because if it transaction log becomes full then all databases stop functioning. Then you can end up with separate SQL servers for each user. Which is sort of nonsense if you are talking about thousands of clients.

提交回复
热议问题