关于mysql 自增长 主键

我遇到过 
我这样建表

![](http://images2017.cnblogs.com/blog/1128666/201709/1128666-20170917222547078-1511224136.png)
但是当我插入一个值后,就不能自增长了,报错信息中包括一个数字,int最大值范围 2147483647

看报错信息发现,插入id位数不对,然后清空表了 truncate table t_user;

最后: alter table t_user auto_increment =1;

原文地址:https://www.cnblogs.com/humi/p/7538294.html