• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn khắc phục lỗi Duplicate entry 'xxxxx' for key x cho vbb

Admin

Well-Known Member
Staff member
Administrator
Thông thường, khi bị lỗi, các bạn sẽ thấy lỗi này khi gưi bài mới, đăng ký thành viên, gửi tin nhắn ....

Nguyên nhân thì có nhiều và cũng do nhiều phía, mình không đề cập đến mà chỉ hướng dẫn cách khắc phục thôi.

Dưới đây là 1 ví dụ về lỗi này:
Code:
Invalid SQL:
INSERT INTO [B][COLOR=Red][SIZE=5]user[/SIZE][/COLOR][/B]
    (options, adminoptions, usertitle, customtitle, username, email, languageid, homepage, birthday_search, birthday, showbirthday, icq, aim, yahoo, msn, skype, parentemail, referrerid, ipaddress, posts, usergroupid, reputationlevelid, reputation, warnings, infractions, ipoints, pmpopup, autosubscribe, threadedmode, showvbcode, styleid, timezoneoffset, daysprune, joindate, lastactivity, lastpost, salt, passworddate, password, membergroupids, displaygroupid, lastvisit, maxposts, startofweek)
VALUES
    (45107287, 0, 'Junior Member', 0, 'test1', '', 0, '', '', '', 0, '', '', '', '', '', '', 0, '', 0, 2, 5, 10, 0, 0, 0, 1, -1, 0, 1, 0, '7', -1, 1326088080, 1326088080, 0, '6bteLjHSJL$R1~}p|m3~ne8qJCpKbQ', FROM_UNIXTIME(1326088157), 'c210438fa5b77d089de0cd05b4e157f6', '', '', 1326088157, -1, -1);

MySQL Error   : Duplicate entry '4294967295' for key 1
Các bạn lưu ý tên table ở trên nhé.


Đầu tiên.
- Bạn download bản vBulletin cùng phiên bản với bản bạn đang dùng.
- Upload thư mục install lên ngang hàng file index.php hiện tại.
- Xóa file install/install.php đi rồi làm tiếp các bước sau

- Login vào AdminCP đc các bạn làm như sau:
SinhVienIT.NET---duplicate-entry-1.jpg


- Sau đó kéo xuống chọn chức năng Fix Unique Index
SinhVienIT.NET---duplicate-entry-2.jpg


Làm xong thì xóa thư mục install đi

Cách này áp dụng cho mọi phiên bản vBulletin.
 

Similar threads

New posts New threads New resources

Back
Top