返回列表 发帖
查看: 2050|回复: 5

[已处理] X3.420220811版本安装报错,发帖少表,阿里云,mysql8.0

1

主题

2

回帖

8

积分

初学乍练

贡献
0 点
金币
5 个
发表于 2022-8-25 15:34:00 | 显示全部楼层 |阅读模式
BUG反馈
程序版本: X3.4
浏览器: Chrome 
BUG地址: 隐藏内容
BUG截图:
测试用户名: 隐藏内容
测试密码: 隐藏内容


全新安装时报错,配置完成后,发帖报错:


1 贡献

最佳答案

云数据库得用X3.5
Discuz! X3.5 Beta-20220910 发布
https://www.dismall.com/thread-13507-1-1.html
2.png
回复

使用道具 举报

56

主题

1450

回帖

3万

积分

管理员

贡献
2072 点
金币
1383 个
发表于 2022-8-25 15:34:33 | 显示全部楼层
mysql版本太高吧
回复 支持 反对

使用道具 举报

1

主题

2

回帖

8

积分

初学乍练

贡献
0 点
金币
5 个
 楼主| 发表于 2022-8-25 15:38:45 | 显示全部楼层
本帖最后由 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

执行导致下面报错

> 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

回帖

8

积分

初学乍练

贡献
0 点
金币
5 个
 楼主| 发表于 2022-8-25 15:51:17 | 显示全部楼层
第一段报错,会导致下面报错
Incorrect table definition; there can be only one auto column and it must be defined as a key

第二段报错,执行导致下面报错
> 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

主题

268

回帖

780

积分

应用开发者

贡献
18 点
金币
315 个
发表于 2022-8-25 21:00:50 | 显示全部楼层
阿里云的RDS安装discuz的话,只能用mysql5.6的版本,5.7以上都不支持联合自增属性(即pre_forum_post表所报的错误)!
回复 支持 反对

使用道具 举报

3

主题

658

回帖

24万

积分

管理员

官方有偿服务QQ 1453650

贡献
116 点
金币
240000 个
QQ
发表于 2022-9-17 12:02:18 | 显示全部楼层
云数据库得用X3.5
Discuz! X3.5 Beta-20220910 发布
https://www.dismall.com/thread-13507-1-1.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2024-3-28 19:50 , Processed in 0.047903 second(s), 10 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2024 Discuz! Team.

关灯 快速发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表