In mysql int, bigint, smallint, tinyint length
bigint
-2 ^ 63 (-9223372036854775808) to 2 ^ 63-1 (9223372036854775807) integer data, storage size is 8 bytes.
int
-2 ^ 31 (2,147,483,648) to 2 ^ 31-1 (2,147,483,647) integer data, storage size is 4 bytes.
smallint
-2 ^ 15 (-32,768) through 2 ^ 15-1 (32,767) of integer data, storage size is 2 bytes.
tinyint
Integers from 0 to 255. Storage size is 1 byte.