I want to know how many tables a mysql database can hold ?
When using MyISAM table, the limit will be determined by your operating system, ie. the number of files you can have in one directory.
Using InnoDB tables removes that limitation by allowing multiple tables within a single datafile (tablespace).
The maximum tablespace size is 4 billion database pages. By default, a 'page' is 16K, but it is possible to recompile with 64K pages. This will allow a single tablespace size of ... 'BIG'.
A table will obviously take up at least one database page, meaning you can theoretically have a maximum of 4 billion tables per tablespace.
When using MyISAM table, the limit will be determined by your operating system, ie. the number of files you can have in one directory.
Using InnoDB tables removes that limitation by allowing multiple tables within a single datafile (tablespace).
The maximum tablespace size is 4 billion database pages. By default, a 'page' is 16K, but it is possible to recompile with 64K pages. This will allow a single tablespace size of ... 'BIG'.
A table will obviously take up at least one database page, meaning you can theoretically have a maximum of 4 billion tables per tablespace.