顯示廣告
隱藏 ✕
※ 本文為 dinos 轉寄自 ptt.cc 更新時間: 2013-09-02 11:44:39
看板 Database
作者 DarkKiller (System hacked)
標題 Re: [SQL ] 請問Mysql單一資料表最大儲存空間為多少?
時間 Sun Sep  1 20:07:49 2013


※ 引述《jami520 (我的生命因你而發光)》之銘言:
: 目前我有些資料每天都要儲存,需要很大的容量
: 存了一個月就已經到達了2GB,不曉得mysql 5 單一資料表最多可儲存多少空間呢?
: 如果要變成無限制儲存有方法嗎?

http://dev.mysql.com/doc/refman/5.5/en/table-size-limit.html

MyISAM 宣稱單一表格最大大小通常是在底層限制。

The effective maximum table size for MySQL databases is usually
determined by operating system constraints on file sizes, not by
MySQL internal limits.

http://dev.mysql.com/doc/refman/5.5/en/create-table.html

When you create a MyISAM table, MySQL uses the product of the
MAX_ROWS and AVG_ROW_LENGTH options to decide how big the resulting
table is. If you don't specify either option, the maximum size for
MyISAM data and index files is 256TB by default.

預設的 MyISAM 可以長到 256TB。

http://dev.mysql.com/doc/refman/5.5/en/innodb-restrictions.html

InnoDB 沒有明講,不過在開啟 innodb_per_file 後,我這邊有 252GB 的
ibd 檔。

http://www.percona.com/forums/questions-discussions/mysql-and-percona-server/6125-[solved]-maximum-innodb-table-size

Percona 論壇這邊說 64TB...

: 不然大家遇到這樣的大儲存資料是如何處理呢? 感謝

不處理...

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 112.121.80.241

--
※ 看板: dinos 文章推薦值: 0 目前人氣: 0 累積人氣: 921 
guest
x)推文 r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇