[Solved] com.mysql.jdbc.MysqlDataTruncation: Data truncation xxxx

Error:
Out of range value for column 'pk' at row 1: Table fields are not long enough

Data too long for column 'ip' at row 1: Table fields are not long enough

 com.mysql.jdbc.MysqlDataTruncation:
 Data truncation: Data too long for column 'ip' at row 1

Solution:

Modify the length of field

Read More: