久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线
Discuz! 官方交流社區(qū)
標(biāo)題:
數(shù)據(jù)庫升級報錯
[打印本頁]
作者:
dreameraa
時間:
2020-5-8 04:46
標(biāo)題:
數(shù)據(jù)庫升級報錯
升級SQL語句
:
ALTER TABLE pre_forum_attachment CHANGE `aid` `aid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT
Error
: ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '16777215' for key 'PRIMARY'
Errno.
: 1062
++++
因為mediumint
最大附件記錄數(shù)是0-16777215,已經(jīng)達(dá)到上限;
pre_forum_attachment 0-9 這些
表MYSQL中的aid 類型早已經(jīng)成
BIGINT
。
現(xiàn)在這個升級語句還卡在
mediumint(8)
。所以升級過不去。請問有什么解決辦法,接受有償服務(wù)。謝謝。
作者:
crx349
時間:
2020-5-8 17:50
直接 命令行 手動執(zhí)行命令
作者:
老周部落
時間:
2020-5-8 22:29
在安裝目錄找install.sql 完了改一下對應(yīng)類型就行。
作者:
dreameraa
時間:
2020-5-9 09:03
老周部落 發(fā)表于 2020-5-8 22:29
在安裝目錄找install.sql 完了改一下對應(yīng)類型就行。
DROP TABLE IF EXISTS pre_forum_attachment_0;
CREATE TABLE pre_forum_attachment_0 (
aid mediumint(8) unsigned NOT NULL,
+++
是不是把 aid mediumint(8) unsigned NOT NULL, 改成 aid bigint(8) unsigned NOT NULL, 對嗎?
然后把pre_forum_attachment_0 到 pre_forum_attachment_9都改了,并重新升級數(shù)據(jù)庫對嗎?
作者:
dreameraa
時間:
2020-5-11 02:14
老周部落 發(fā)表于 2020-5-8 22:29
在安裝目錄找install.sql 完了改一下對應(yīng)類型就行。
非常感謝,按照您的提示,數(shù)據(jù)庫已經(jīng)升級完畢。
歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/)
Powered by Discuz! W1.0