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

返回列表 發(fā)帖
查看: 7577|回復: 5

[已處理] X3.420220811版本安裝報錯,發(fā)帖少表,阿里云,mysql8.0

1

主題

2

回帖

1

粉絲

初學乍練

貢獻
0 點
金幣
5 個
樓主
發(fā)表于 2022-8-25 15:34:00 |北京| 只看樓主 |倒序瀏覽 |閱讀模式
BUG反饋
程序版本: X3.4
瀏覽器: Chrome 
BUG地址: 隱藏內容
BUG截圖:
測試用戶名: 隱藏內容
測試密碼: 隱藏內容


全新安裝時報錯,配置完成后,發(fā)帖報錯:


1 貢獻

最佳答案

云數(shù)據庫得用X3.5
Discuz! X3.5 Beta-20220910 發(fā)布
http://m.sdtechgong.com.cn/thread-13507-1-1.html
回復

使用道具 舉報

56

主題

1462

回帖

20

粉絲

管理員

貢獻
2076 點
金幣
1394 個
沙發(fā)
發(fā)表于 2022-8-25 15:34:33 |浙江| 只看Ta
mysql版本太高吧
回復

使用道具 舉報

1

主題

2

回帖

1

粉絲

初學乍練

貢獻
0 點
金幣
5 個
板凳
 樓主| 發(fā)表于 2022-8-25 15:38:45 |北京| 只看Ta
本帖最后由 blackmorgan 于 2022-8-25 15:45 編輯

您好,大神,我們使用的是阿里云的服務器,自帶的mmysql8.0,以下是報錯信息:
DROP TABLE IF EXISTS pre_common_member_grouppm;
CREATE TABLE pre_common_member_grouppm (
  uid mediumint(8) unsigned NOT NULL DEFAULT '0',
  gpmid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  dateline int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (uid,gpmid)
) TYPE=MyISAM;

上面這個條語句 會導致下面報錯

Incorrect table definition; there can be only one auto column and it must be defined as a key


第二個:
CREATE TABLE pre_forum_post (
  pid int(10) unsigned NOT NULL,
  fid mediumint(8) unsigned NOT NULL DEFAULT '0',
  tid mediumint(8) unsigned NOT NULL DEFAULT '0',
  `first` tinyint(1) NOT NULL DEFAULT '0',
  author varchar(15) NOT NULL DEFAULT '',
  authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(80) NOT NULL DEFAULT '',
  dateline int(10) unsigned NOT NULL DEFAULT '0',
  message mediumtext NOT NULL,
  useip varchar(15) NOT NULL DEFAULT '',
  `port` smallint(6) unsigned NOT NULL DEFAULT '0',
  invisible tinyint(1) NOT NULL DEFAULT '0',
  anonymous tinyint(1) NOT NULL DEFAULT '0',
  usesig tinyint(1) NOT NULL DEFAULT '0',
  htmlon tinyint(1) NOT NULL DEFAULT '0',
  bbcodeoff tinyint(1) NOT NULL DEFAULT '0',
  smileyoff tinyint(1) NOT NULL DEFAULT '0',
  parseurloff tinyint(1) NOT NULL DEFAULT '0',
  attachment tinyint(1) NOT NULL DEFAULT '0',
  rate smallint(6) NOT NULL DEFAULT '0',
  ratetimes tinyint(3) unsigned NOT NULL DEFAULT '0',
  `status` int(10) NOT NULL DEFAULT '0',
  tags varchar(255) NOT NULL DEFAULT '0',
  `comment` tinyint(1) NOT NULL DEFAULT '0',
  replycredit int(10) NOT NULL DEFAULT '0',
  position int(8) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (tid,position),
  UNIQUE KEY pid (pid),
  KEY fid (fid),
  KEY authorid (authorid,invisible),
  KEY dateline (dateline),
  KEY invisible (invisible),
  KEY displayorder (tid,invisible,dateline),
  KEY `first` (tid,`first`)
) TYPE=MyISAM

執(zhí)行導致下面報錯

> 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 36


回復

使用道具 舉報

1

主題

2

回帖

1

粉絲

初學乍練

貢獻
0 點
金幣
5 個
地板
 樓主| 發(fā)表于 2022-8-25 15:51:17 |北京| 只看Ta
第一段報錯,會導致下面報錯
Incorrect table definition; there can be only one auto column and it must be defined as a key

第二段報錯,執(zhí)行導致下面報錯
> 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 36

我們用的是阿里云 自帶的MYSQL8.0
回復

使用道具 舉報

19

主題

287

回帖

4

粉絲

應用開發(fā)者

貢獻
22 點
金幣
321 個
5#
發(fā)表于 2022-8-25 21:00:50 |浙江| 只看Ta
阿里云的RDS安裝discuz的話,只能用mysql5.6的版本,5.7以上都不支持聯(lián)合自增屬性(即pre_forum_post表所報的錯誤)!
回復

使用道具 舉報

5

主題

1007

回帖

3

粉絲

管理員

官方有償服務QQ 1453650

貢獻
180 點
金幣
240005 個
QQ
6#
發(fā)表于 2022-9-17 12:02:18 |浙江| 只看Ta
云數(shù)據庫得用X3.5
Discuz! X3.5 Beta-20220910 發(fā)布
http://m.sdtechgong.com.cn/thread-13507-1-1.html
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區(qū) ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2026-4-18 10:44 , Processed in 0.048609 second(s), 13 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

關燈 在本版發(fā)帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表