久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

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

標(biāo)題: DZ安裝成功后,缺少兩個(gè)表 [打印本頁]

作者: qn_laoyao    時(shí)間: 2022-6-29 14:19
標(biāo)題: DZ安裝成功后,缺少兩個(gè)表


這兩個(gè)數(shù)據(jù)庫表,沒有自動安裝成功

一、pre_common_member_grouppm
(1075) Incorrect table definition; there can be only one auto column and it must be defined as a key
  1. CREATE TABLE 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) ) ENGINE=MYISAM DEFAULT CHARSET=utf8
復(fù)制代碼


二、pre_forum_post
(1075) Incorrect table definition; there can be only one auto column and it must be defined as a key
  1. CREATE TABLE 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`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8
復(fù)制代碼



求助,如何解決?

作者: crx349    時(shí)間: 2022-6-29 17:58
mysql版本多少?
作者: dashen    時(shí)間: 2022-6-29 21:46
X3.4不支持云數(shù)據(jù)庫
作者: 專家    時(shí)間: 2022-6-29 23:46
云數(shù)據(jù)庫吧?Discuz只支持MyISAM引擎,有些云數(shù)據(jù)庫不支持這個(gè),就會報(bào)錯(cuò)。
可以嘗試降低數(shù)據(jù)庫版本再試,或者嘗試自建數(shù)據(jù)庫。
作者: qn_laoyao    時(shí)間: 2022-6-30 13:46
專家 發(fā)表于 2022-6-29 23:46
云數(shù)據(jù)庫吧?Discuz只支持MyISAM引擎,有些云數(shù)據(jù)庫不支持這個(gè),就會報(bào)錯(cuò)。
可以嘗試降低數(shù)據(jù)庫版本再試, ...

原來如此,我是 innodb ,腦殼痛。 那  dz都沒想過修復(fù)嘛
作者: pcyi    時(shí)間: 2022-6-30 14:30
qn_laoyao 發(fā)表于 2022-6-30 13:46
原來如此,我是 innodb ,腦殼痛。 那  dz都沒想過修復(fù)嘛

X3.4當(dāng)前階段以修復(fù)BUG為主了 上X3.5吧!
作者: 專家    時(shí)間: 2022-6-30 15:02
qn_laoyao 發(fā)表于 2022-6-30 13:46
原來如此,我是 innodb ,腦殼痛。 那  dz都沒想過修復(fù)嘛

那不叫修復(fù),這塊又不是缺陷,Discuz現(xiàn)有架構(gòu)就是按MyISAM設(shè)計(jì)的,天生不兼容innodb。
不兼容的原因是MyISAM里的一項(xiàng)重要功能,InnoDB里沒有。
誰能想到這引擎發(fā)展的這十來年連功能都不補(bǔ)全,而且地位還上升了呢?

但是也沒辦法,人家就這么設(shè)計(jì)。為了兼容,x3.5開始把部分核心邏輯給重寫了,兼容了innodb。但由于改動較大,此功能無法在x3.4上提供。
作者: crx349    時(shí)間: 2022-6-30 15:35
qn_laoyao 發(fā)表于 2022-6-30 13:46
原來如此,我是 innodb ,腦殼痛。 那  dz都沒想過修復(fù)嘛

mysql用什么版本 具體改幾個(gè)內(nèi)容就可以安裝了
作者: qn_laoyao    時(shí)間: 2022-7-1 11:57
crx349 發(fā)表于 2022-6-30 15:35
mysql用什么版本 具體改幾個(gè)內(nèi)容就可以安裝了

MySQL5.6         騰訊云mysql




歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/) Powered by Discuz! W1.0