Question : MYSQL is limiting the number of table rows to 32,767

I am running Apache Friends XAMPP.with MySQL client version: 5.0.51b

I am using a script to populate a table but for some reason the table will not take more than 32,767 rows. I have used both the Alter and Create New table statements to set max rows. Both queries return a message to say that they were successful yet the number of rows above will not go above 32,767.

There appears to be nothing in the MYSQL manual to suggest that this limit exists. The only references are to a 2GB limit. Any one got any ideas?

ALTER TABLE my_table MAX_ROWS=100000;

Answer : MYSQL is limiting the number of table rows to 32,767

Since you are using a script, the issue may also lie with data types used.

For instance, do you have an auto increment ID in your table, and if so, what is the data type and size you set for it?

Also, inside the script you use to populate the data, make sure that the variable types do not have inherent size limits.
Random Solutions  
 
programming4us programming4us