Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

发帖机器人1267错误不能使用中文的解决办法

[复制链接]
老7 发表于 2007-1-2 18:19:00 | 显示全部楼层 |阅读模式
问题一般这样:
  1. Discuz! info: MySQL Query Error

  2. User: 枫叶
  3. Time: 2007-1-2 11:53am
  4. Script: /bbs/postmach.php

  5. SQL: SELECT * FROM cdb_postmach WHERE style='post' and sside='0' and value='好贴顶个先....'
  6. Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation '='
  7. Errno.: 1267

  8. Similar error report has beed dispatched to administrator before.
复制代码


郁闷了一天,搜索了关于发帖机器人问题的所有帖子,都解决不了,

最后搜索"1267",找到https://discuz.dismall.com/thread-480356-1-1.html这个帖子~
根据他这里的方法,居然一搞就成功,谢谢该帖作者!

新安装的,直接改安装代码 在ENGINE=MyISAM 后加CHARSET=gbk,两者之间要有空格,再去升级数据库.
如已安装,已上传的文件不要管,只请BBS后台执行drop table cdb_postmach; 卸载语句,再重新用改了后的语句升级数据库~~

如install4.sql的如下:
  1. drop table if exists cdb_postmach;

  2. create table cdb_postmach (
  3.   style varchar(20) not null default '',
  4.   sside varchar(254) not null default '',
  5.   cdate int(18) not null default '0',
  6.   value text not null
  7. ) ENGINE=MyISAM CHARSET=gbk;


  8. insert into cdb_postmach values ('set', '0', 0, 'thison');
  9. insert into cdb_postmach values ('set', '0', 0, 'other');
  10. insert into cdb_postmach values ('set', '18', 0, 'reftime');
  11. insert into cdb_postmach values ('set', '5', 0, 'whatis');
  12. insert into cdb_postmach values ('set', '15', 0, 'usertime');
  13. insert into cdb_postmach values ('set', '0', '0', 'posttid');
  14. insert into cdb_postmach values ('set', '18', 0, 'posttime');
  15. insert into cdb_postmach values ('set', '2', '0', 'moneys');
  16. insert into cdb_postmach values ('set', '3', 0, 'replytime');
  17. insert into cdb_postmach values ('set', '0', 0, 'fids');
  18. insert into cdb_postmach values ('set', '2', 0, 'ext_type');
  19. insert into cdb_postmach values('set', '1', 0, 'closetopic');
  20. insert into cdb_postmach values ('set', '0', 0, 'moderatedstatus');
复制代码

[ 本帖最后由 老7 于 2007-1-2 18:22 编辑 ]
rwbin 发表于 2007-1-2 18:32:22 | 显示全部楼层
:L
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 16:38 , Processed in 0.023909 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表