Max tables in a MySQL database

前端 未结 5 857
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 07:19

Is it bad to have too many tables in a database? I have about 160 tables in one database. Is it better to split it into several database rather than using a single database? Sin

5条回答
  •  -上瘾入骨i
    2021-02-19 07:30

    There are no server limits on the number of tables in a MySQL database. You will definitely have no problems with 160 tables, and you don't need to split them into multiple databases.

    You will not gain performance by splitting your tables into multiple databases. If performance remains an issue, you could consider using per-table tablespaces in order to place some sets of tables on different physical disks.

提交回复
热议问题