Please help: Discuz database error, the prompt is as follows, how to solve? Look up your finger and click Discuz! & Nbsp; Database & nbsp; Error (1062) & nbsp; Duplicate & nbsp; entry & nbsp; '4' & nbsp; for & nbsp; key & nbs for help: discuz database error
Please help: Discuz database error. the prompt is as follows. how can this problem be solved? High finger points
Share:
------ Solution --------------------
You do not have this table, primary key (auto-increment)
Set the primary key ID to auto-increment
------ Solution --------------------
Obviously, the primary key has the same value. here, when 'id' = '4' is inserted, the table already has the id = 4 value, so it is repeated, I don't know what your business is. if id is the primary key association of other tables, we recommend that you create an unrelated auto-increment primary key, and the associated id is only a field of this table. If the id is not associated with the primary key of other tables, do not set the id value of the primary key.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.