shortysbest Posted April 4, 2011 Share Posted April 4, 2011 How would I check this? I know 32bit systems have a default of 4gb, and like 4.2billion rows. I have a 64bit system, so would I be able to have like 130gb? Quote Link to comment https://forums.phpfreaks.com/topic/232694-how-can-i-check-how-many-rows-and-how-large-a-table-can-be/ Share on other sites More sharing options...
requinix Posted April 4, 2011 Share Posted April 4, 2011 According to http://dev.mysql.com/doc/refman/5.1/en/features.html, Scalability and Limits: Support for large databases. We use MySQL Server with databases that contain 50 million records. We also know of users who use MySQL Server with 200,000 tables and about 5,000,000,000 rows. Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist of 1 to 16 columns or parts of columns. The maximum index width is 1000 bytes (767 for InnoDB); before MySQL 4.1.2, the limit is 500 bytes. An index may use a prefix of a column for CHAR, VARCHAR, BLOB, or TEXT column types. And buried in the CREATE TABLE documentation is AVG_ROW_LENGTH An approximation of the average row length for your table. You need to set this only for large tables with variable-size rows. 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. (If your operating system does not support files that large, table sizes are constrained by the file size limit.) If you want to keep down the pointer sizes to make the index smaller and faster and you don't really need big files, you can decrease the default pointer size by setting the myisam_data_pointer_size system variable. (See Section 5.1.4, “Server System Variables”.) If you want all your tables to be able to grow above the default limit and are willing to have your tables slightly slower and larger than necessary, you can increase the default pointer size by setting this variable. Setting the value to 7 permits table sizes up to 65,536TB. Quote Link to comment https://forums.phpfreaks.com/topic/232694-how-can-i-check-how-many-rows-and-how-large-a-table-can-be/#findComment-1196859 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.