Quote:
Originally Posted by it-iss.com
There appears to be very sketchy documentation about this feature. However, from my reading this is what I have discovered MySQL :: Re: Forcing max_rows.
Firstly, MAX_ROWS is associated with MyISAM tables. The idea is that MAX_ROWS along with AVG_ROW_LENGTH is used to calculate the myisam_data_pointer_size. This data pointer size determines the hard limit of the table size.
However, the myisam_data_pointer_size represents the size in bytes of the number of records in the table. The minimum being 2 bytes and the max being 7 bytes. A value of 4 allows 4Gb and 6 allows 256Tb.
|
---------------------------------------------------------------------------------------------------------------------------------
myisam_data_pointer_size
Command-Line Format --myisam_data_pointer_size=#
Option-File Format myisam_data_pointer_size
Option Sets Variable Yes, myisam_data_pointer_size
Variable Name myisam_data_pointer_size
Variable Scope Global
Dynamic Variable Yes
Permitted Values (<= 5.0.5)
Type numeric
Default 4
Range 2-8
Permitted Values (>= 5.0.6)
Type numeric
Default 6
Range 2-7
i think you r talkin about this values........ i can change the value of myisam_data_pointer_size but this feature talks in gb, means how will be the max size of table, i need to specify the no of row inserted.. i think it can not be happen with this system variable........ if i m wrong , make me correct..
i read the link which u said...
i used the command-
show variable;
SET GLOBAL myisam_pointer_size=2;
then i again check s
show variables; it shows variable value is changed to 2 from 6
then we create a table with syntax-
CREATE TABLE `zero`.`limit1` (
`id` int(11) NOT NULL,
`name` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
it does not work then we create another table with syntax
CREATE TABLE `zero`.`limit2` (
`id` int(11) NOT NULL,
`name` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=2
both table allow me to insert more than 2 rows. i can solve this prob with other way but i already spend my too much time in this thats why i want to write a word in create table statement which restrict to insert more than 2 row....
i m bothering you i know.......... sorry for that