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

前端 未结 10 2106
情歌与酒
情歌与酒 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条回答
  •  鱼传尺愫
    2020-12-03 00:55

    Two problems with many databases (actually many more, but start with these.)

    1. You can't use parameters for database names.

    2. What will you do whe you make your first change to a table? (Hint: Work X (# databases) ).

    And "many tables" suggests you're thinking about tables per user. That's another equally problematic idea.

提交回复
热议问题