discuz 3.2因MYSQL版本过高出现1064 错误,SELECT * FROM forum_announcement WHERE type!=2 AND groups = ” AND starttime

主要的原因是因为MYSQL升级到了8.0,在后台更新缓存的时候,出现以下错误

错误
Discuz! Database Error
(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 'groups = '' AND starttime<=1614946147 AND (endtime>=1614946147 OR endtime=0) ORD' at line 1
SELECT * FROM forum_announcement WHERE type!=2 AND groups = '' AND starttime<=1614946147 AND (endtime>=1614946147 OR endtime=0) ORDER BY displayorder, starttime DESC, id DESC LIMIT 1

如何解决?

进入你的Discuz论坛根目录目录,在进入以下目录。

source\class\table\table_forum_announcement.php

将文件中所有的groups全部改为`groups`,保存后重新上传到服务器的相同目录即可。

在33行,如图:

图例

注:这个问题和之前是一个系列的。

《Discuz3.2 因Mysql版本过高(8.0)导致出现 (1064) You have an error in your SQL syntax; 错误》

注明:本文为星速云原创版权所有,禁止转载,一经发现将追究版权责任!

(0)
上一篇 2022年7月20日 下午7:57
下一篇 2022年7月20日 下午7:57

相关推荐

发表评论

登录后才能评论
问答社区 QQ客服
微信客服
微信客服
分享本页
返回顶部