After mysql primary key growth since delete a record or insert data again before the foundation of the growth in data delete

Resolve is to remove the primary key and then create a primary key.

Drop Primary Times:

Cannot drop column 'cid': needed in a foreign key constraint 'cart_ibfk_1' of table 'cart'

Need to remove the cart inside cart_ibfk_1 primary key table before you can delete cid primary key.

And then not to create a new table! ! !

Guess you like

Origin www.cnblogs.com/xiaozhuing/p/12152818.html