男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! 官方交流社區(qū)

標題: 3.4升級到3.5出現(xiàn) there can be only one auto column and it must be defined as a key [打印本頁]

作者: nas1    時間: 2024-2-17 20:31
標題: 3.4升級到3.5出現(xiàn) there can be only one auto column and it must be defined as a key
在轉換主題分表pre_forum_post_1表的時候出現(xiàn)

(1075) Incorrect table definition; there can be only one auto column and it must be defined as a keyALTER TABLE forum_post_1 ENGINE=InnoDB;

查看表結構

position字段有個
AUTO_INCREMENT值
如圖,但是這個值在pre_forum_post也是有的,轉換后會自動刪除這值。而分表pre_forum_post_1直接提示錯誤。
(, 下載次數(shù): 43)




作者: 天外飄仙    時間: 2024-2-18 09:07
ALTER TABLE `pre_forum_post_1` CHANGE `position` `position` INT(8) UNSIGNED NOT NULL;

執(zhí)行一下這個sql語句 ,然后刷新升級頁面 ,繼續(xù)升級就可以了
作者: reenva    時間: 2024-11-4 00:16
天外飄仙 發(fā)表于 2024-2-18 09:07
ALTER TABLE `pre_forum_post_1` CHANGE `position` `position` INT(8) UNSIGNED NOT NULL;

執(zhí)行一下這個s ...

這個語法有用,直接升級成功了感謝
作者: 天外飄仙    時間: 2024-11-6 08:06
reenva 發(fā)表于 2024-11-4 00:16
這個語法有用,直接升級成功了感謝

不客氣的,有什么問題 歡迎隨時來問




歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0