Incorrect Integer (2147483647) is inserted into MySQL? 2147483647 is the largest int value for mysql. Just change the type from int to bigint.