mysql-error-1264

#1264 Out of range value fix?

≡放荡痞女 提交于 2020-01-03 02:01:06
问题 When I try to insert the below into my MySQL INSERT INTO `rooms` (`id`, `ip`) VALUES ('131213', '-259857341'); I fails with the follow error: Warning: #1264 Out of range value for column 'ip' at row 1 I am looking around but haven't found how to fix or work it out... My field is unsigned int which should work just fine for that entry. What is the problem and how do I solve ? I am using unsigned int because I wanted to store ips using inet_ntoa/aton. EDIT: I am using unsigned INT as recommend