views:

71

answers:

1

In a MySQL table the id column is set to auto_increment and the next auto_increment is set to 128 in phpmyadmin, but any new rows added have 127 as the value in the id row. I have no idea why.

Changed the column from tiny-int to int and everything working now, cheers.

+7  A: 

What is the columns type? I hope you didn't use tinyint :-) You should use int or number instead.

codymanix
Yep, sounds like tinyint to me too!
Gav
indeed it is a tinyint column, didn't know that'd be a problem
Jonny Barnes
tinyint has a range from -128 to +127, so is is not very well suited for auto_increment columns..
codymanix