香蕉成人伊视频在线观看|学生小视频国产区|yy女主播啪啪啪视频|麻豆传播媒体APP大全免费版官网|瑜伽牲交AV|国产欧美日韩在线天堂区|白浆精品国产91

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

標(biāo)題: X3.420220811版本安裝報(bào)錯(cuò),發(fā)帖少表,阿里云,mysql8.0 [打印本頁(yè)]

作者: blackmorgan    時(shí)間: 2022-8-25 15:34
標(biāo)題: X3.420220811版本安裝報(bào)錯(cuò),發(fā)帖少表,阿里云,mysql8.0
本帖最后由 blackmorgan 于 2022-8-25 15:47 編輯

全新安裝時(shí)報(bào)錯(cuò),配置完成后,發(fā)帖報(bào)錯(cuò):



作者: dashen    時(shí)間: 2022-8-25 15:34
mysql版本太高吧
作者: blackmorgan    時(shí)間: 2022-8-25 15:38
本帖最后由 blackmorgan 于 2022-8-25 15:45 編輯

您好,大神,我們使用的是阿里云的服務(wù)器,自帶的mmysql8.0,以下是報(bào)錯(cuò)信息:
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;

上面這個(gè)條語(yǔ)句 會(huì)導(dǎo)致下面報(bào)錯(cuò)

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


第二個(gè):
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í)行導(dǎo)致下面報(bào)錯(cuò)

> 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



作者: blackmorgan    時(shí)間: 2022-8-25 15:51
第一段報(bào)錯(cuò),會(huì)導(dǎo)致下面報(bào)錯(cuò)
Incorrect table definition; there can be only one auto column and it must be defined as a key

第二段報(bào)錯(cuò),執(zhí)行導(dǎo)致下面報(bào)錯(cuò)
> 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
作者: 人工智能實(shí)驗(yàn)室    時(shí)間: 2022-8-25 21:00
阿里云的RDS安裝discuz的話,只能用mysql5.6的版本,5.7以上都不支持聯(lián)合自增屬性(即pre_forum_post表所報(bào)的錯(cuò)誤)!
作者: Discuz有償服務(wù)    時(shí)間: 2022-9-17 12:02
云數(shù)據(jù)庫(kù)得用X3.5
Discuz! X3.5 Beta-20220910 發(fā)布
http://m.yu-jie.cn/thread-13507-1-1.html




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