LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1507|回复: 4

请问一个mysql数据库中的表最大存储空间是多少?

[复制链接]
发表于 2005-4-27 19:00:16 | 显示全部楼层 |阅读模式
以前好像听说过是2G吧

我忘记了  

请大家告诉我一下

谢谢了
 楼主| 发表于 2005-4-29 07:51:48 | 显示全部楼层
没有人知道嘛!

请大家帮帮我!
谢谢!
回复 支持 反对

使用道具 举报

发表于 2005-4-30 20:13:49 | 显示全部楼层
最新版好象挺大的,不过和系统有关,linux下最大是4G
回复 支持 反对

使用道具 举报

发表于 2005-4-30 21:15:38 | 显示全部楼层
以下摘自MySQL Reference Manual for version 5.0.1-alpha

1.2.4 How Big MySQL Tables Can Be

MySQL 3.22 had a 4GB (4 gigabyte) limit on table size. With the MyISAM storage engine in MySQL 3.23, the maximum table size was increased to 8 million terabytes (2 ^ 63 bytes). With this larger allowed table size, the maximum effective table size for MySQL databases now usually is determined by operating system constraints on file sizes, not by MySQL internal limits.

The InnoDB storage engine maintains InnoDB tables within a tablespace that can be created from several files. This allows a table to exceed the maximum individual file size. The tablespace can include raw disk partitions, which allows extremely large tables. The maximum tablespace size is 64TB.

The following table lists some examples of operating system file-size limits. This is only a rough guide and is not intended to be definitive. For the most up-to-date information, be sure to check the documentation specific to your operating system.
Operating System         File-size Limit
Linux 2.2-Intel 32-bit         2GB (LFS: 4GB)
Linux 2.4         (using ext3 filesystem) 4TB
Solaris 9/10         16TB
NetWare w/NSS filesystem         8TB
win32 w/ FAT/FAT32         2GB/4GB
win32 w/ NTFS         2TB (possibly larger)
MacOS X w/ HFS+         2TB

On Linux 2.2, you can get MyISAM tables larger than 2GB in size by using the Large File Support (LFS) patch for the ext2 filesystem. On Linux 2.4, patches also exist for ReiserFS to get support for big files (up to 2TB). Most current Linux distributions are based on kernel 2.4 and already include all the required LFS patches. With JFS and XFS, petabyte and larger files are possible on Linux. However, the maximum available file size still depends on several factors, one of them being the filesystem used to store MySQL tables.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 21:27:25 | 显示全部楼层
我的情况应该上这样的
Linux 2.4 (using ext3 filesystem) 4TB

是4TB大小啊
哈哈

谢谢了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表