Maximum rows in Mysql database table
This is the very general question which usually comes in a developers mind that “How much data a mysql table may contain”. This question is also important because as a developer we must know the maximum limit so that we can take appropriate action before table crash.
Moreover the main reason behind database / table crash is disk full. But apart from that maximum table size is also an important factor of table crash And this factor depends on Operating System constraint. Below are the list or OS and their rough data is provided into below list. Although this data may be confirmed from respective OS site.
Operating System File-size Limit
Win32 w/ FAT/FAT3 2GB/4GB
Win32 w/ NTFS 2TB (possibly larger)
Linux 2.2-Intel 32-bit 2GB (LFS: 4GB)
Linux 2.4+ (using ext3 file system) 4TB
Solaris 9/10 16TB
MacOS X w/ HFS+ 2TB
NetWare w/NSS file system 8TB
Now as far as Table size concerned then here are the detail based on Table Engine Type.
MyISAM Engine Type: 2GB (until we are using Large File Support i.e., LFS)
Innodb Eengine Type: We all know innoDB tables are created from several files . This enables a table exceeds the maximum individual files. The combination of these files are known as tablespace. The maximum tablespace size is 64TB.
Chandra Shekhar
Latest posts by Chandra Shekhar (see all)
- Best practices for micro service design - January 23, 2022
- Spring Boot - January 23, 2022
- Java - January 23, 2022
Recent Comments