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

 找回密码
 立即注册
搜索

[转换] SOS :You have an error in your SQL syntax

[复制链接]
riafan 发表于 2007-10-9 14:12:49 | 显示全部楼层 |阅读模式
pw5.3转dz6.0时出现:
____________________________________________
XConvert info: MySQL Query Error

Time: 2007-10-9 6:05am
SQL: SELECT gid, grouptitle FROM 515644.pw_usergroups WHERE gptype ='special' or (gptype = 'system' and gid > 7) ORDER BY gid ASC
Error: 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 '515644.pw_usergroups WHERE gptype ='special' or (gptype = 'system' and gid > 7) ' at line 1
Errormsg.: 可能原因:1.数据超长或类型不匹配;2.数据库记录重复
Errno.: 1064
_____________________________________________

找了很久,网上给出的解决方法是:
_____________________________________________
1. php.ini
檢查以下設定
magic_quotes_gpc = on

magic_quotes_runtime = Off

magic_quotes_sybase = Off
2.如非本地使用,最好加上验证! 查找$cfg[’Servers’][$i][’auth_type’] = ‘config’,将config改为http即可
3.php.ini文件中\”;extension=php_mbstring.dll”前面的\”;”一定要去掉,同时将php/etx目录下的php_mbstring.dll文件复制到c:/winnt/system32目录下。本人原创转载请注明来自ckx.net
4.mysql版本问题,有可能您用的是mysql5,换成mysql4.1也许会马上解决。
5.如果您是用phpmyadmin备份数据时出现的这个错误,请将字符设置成GB2312
______________________________________________________

我的就是用:
Apache Web Server Version 2.2.4

PHP Script Language Version 5.2.1

MySQL Database Version 5.0.27

不想把数据库转成4.0的
高手帮帮忙~~~

[ 本帖最后由 riafan 于 2007-10-9 15:20 编辑 ]
回复

使用道具 举报

桃子(小敏) 发表于 2007-10-9 14:55:00 | 显示全部楼层
删除表pw_usergroups 中gptype ='special' 的记录
回复

使用道具 举报

 楼主| riafan 发表于 2007-10-9 15:20:38 | 显示全部楼层
不是啊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-13 18:29 , Processed in 0.092230 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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