Maximum Number of Tables in MySQL

前端 未结 5 1321
野的像风
野的像风 2020-12-16 12:44

What is the maximum number of tables that MySQL can handle?

5条回答
  •  萌比男神i
    2020-12-16 13:11

    The fact that you are asking this question is probably an indicator that you are not taking a best practice approach to your problem.

    You may want to explain why you need to create many tables, in order to see if you will receive better suggestions on how to tackle this issue.

    However, there are no server limits on the number of tables in a MySQL database, but since each MyISAM table has associated files, then any OS limits on the number of files allowed will have an effect. InnoDB tables, indexes, etc, are stored in a single tablespace, with a maximum of two billion tables. (Source)

提交回复
热议问题