|
昨天在為一個用戶排查發帖報錯時遇到如下錯誤:- Discuz! Database Error The database has encountered a problem. Need Help? Error messages:
- [Type] 查詢語句錯誤 [1062] Duplicate entry '65535' for key 1
- [Query] INSERT INTO common_tag (tagname, status) VALUES ('通話時間', '0')
- Program messages:
- forum.php(require)
- source/module/forum/forum_post.php(require_once)
- source/include/post/post_editpost.php(modthreadtag)
- source/function/function_forum.php(DB::query)
複製代碼 去看了一下,原來是tags過多,自動增長的id超出了mysql默認的最大值,這裡只要找到pre_common_tag表中,tagid的類型由smallint改為mediumint類型,長度/值改為8.增大一下默認的tag個數。
當然一般的網站可能不會有這麼多的站,像手機站這種tag比較多的站點注意一下這個問題!
|
|