Strange problem I can\'t seem to get my head around. I have a table in a MySQL database with the following structure...
CREATE TABLE IF NOT EXISTS `tblb
2147483647 is the largest int value for mysql. Just change the type from int to bigint.
signed and unsigned issue
alter table tblbaseprices
modify column site_id int(10) unsigned NOT NULL;
reference - http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
site_id
)int(11)
, the max it can go is int(10)
With you code I got this error - Unknown column 'base_price_4a' in 'field list'. It means that you are trying to insert into another table (maybe in another schema), and that table has primary key INT and AUTO_INCREMENT=2147483647.
you've hit the 32-bit integer limit, thus preventing the auto increment from incrementing. switching your pk to bigint with a higher column length should fix the issue.
Also, if your PK is never going to be negative, switching to an unsigned int should give you more space.
it's a database issue. check your phpmyadmin > your DB > structure, your primary key should be setted in "bigint", not just "int"
Duplicate entry '57147-2147483647' for key 'app_user' [ INSERT INTO user_lookup
(user_id
, app_id
, app_user_id
, special_offers
, ip_address
) VALUES ('2426569', '57147', '4009116545', 1, 1854489853) ]