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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

导入数据库时出现 Errno.: 1193 的解决方法

[复制链接]
ycttm 发表于 2006-11-25 16:42:25 | 显示全部楼层
我的也是啊
快啊
Discuz! info: MySQL Query Error

User: admin
Time: 2006-11-25 4:27pm
Script: /admincp.php

SQL: CREATE TABLE `cdb_access` ( `uid` mediumint(8) unsigned NOT NULL default '0', `fid` smallint(6) unsigned NOT NULL default '0', `allowview` tinyint(1) NOT NULL default '0', `allowpost` tinyint(1) NOT NULL default '0', `allowreply` tinyint(1) NOT NULL default '0', `allowgetattach` tinyint(1) NOT NULL default '0', `allowpostattach` tinyint(1) NOT NULL default '0', PRIMARY KEY (`uid`,`fid`)) ENGINE=MyISAM DEFAULT CHARSET=gbk
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 'DEFAULT CHARSET=gbk' at line 1
Errno.: 1064
回复

使用道具 举报

happylaius 发表于 2006-11-26 00:17:55 | 显示全部楼层
Discuz! info: MySQL Query Error

User: uuloo
Time: 2006-11-26 12:14am
Script: /admincp.php

SQL: CREATE TABLE `cdb_sessions` ( `sid` char(6) character set gbk collate gbk_bin NOT NULL default '', `ip1` tinyint(3) unsigned NOT NULL default '0', `ip2` tinyint(3) unsigned NOT NULL default '0', `ip3` tinyint(3) unsigned NOT NULL default '0', `ip4` tinyint(3) unsigned NOT NULL default '0', `uid` mediumint(8) unsigned NOT NULL default '0', `username` char(15) NOT NULL default '', `groupid` smallint(6) unsigned NOT NULL default '0', `styleid` smallint(6) unsigned NOT NULL default '0', `invisible` tinyint(1) NOT NULL default '0', `action` tinyint(1) unsigned NOT NULL default '0', `lastactivity` int(10) unsigned NOT NULL default '0', `lastolupdate` int(10) unsigned NOT NULL default '0', `pageviews` smallint(6) unsigned NOT NULL default '0', `seccode` smallint(6) unsigned NOT NULL default '0', `fid` smallint(6) unsigned NOT NULL default '0', `tid` mediumint(8) unsigned NOT NULL default '0', `bloguid` mediumint(8) unsigned NOT NULL default '0', UNIQUE KEY `sid` (`sid`), KEY `uid` (`uid`), KEY `bloguid` (`bloguid`)) ENGINE=HEAP DEFAULT CHARSET=gbk MAX_ROWS=65535
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 'collate gbk_bin NOT NULL default '', `ip1` tinyint(3) unsigned
Errno.: 1064
回复

使用道具 举报

22100 发表于 2006-12-8 10:11:14 | 显示全部楼层
就只导入了第一分卷

Discuz! info: MySQL Query Error

User: 泰山
Time: 2006-12-8 10:05am
Script: /admincp.php

SQL: SET NAMES 'gbk'
Error: Unknown system variable 'NAMES'
Errno.: 1193

Similar error report has beed dispatched to administrator before.

其他还是这样  那些字符都替换完了

郁闷死
回复

使用道具 举报

22100 发表于 2006-12-8 10:48:34 | 显示全部楼层
成功了 谢谢了
回复

使用道具 举报

罗织 发表于 2006-12-11 10:54:11 | 显示全部楼层
SQL: SET NAMES 'utf8'
Error: Unknown system variable 'NAMES'
Errno.: 1193


这样的呢!这样的好象更换了,不可以用啊!!
回复

使用道具 举报

bill1984 发表于 2006-12-12 15:37:38 | 显示全部楼层
Discuz! info: MySQL Query Error

User: sharetm
Time: 2006-12-12 3:28pm
Script: /bbs/admincp.php

SQL: CREATE TABLE `cdb_bbcodes` ( `id` mediumint(8) unsigned NOT NULL auto_increment, `available` tinyint(1) NOT NULL default '0', `tag` varchar(100) NOT NULL default '', `icon` varchar(255) NOT NULL default '', `replacement` text NOT NULL, `example` varchar(255) NOT NULL default '', `explanation` text NOT NULL, `params` tinyint(1) unsigned NOT NULL default '1', `nest` tinyint(3) unsigned NOT NULL default '1', PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=gbk AUTO_INCREMENT=8
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 'DEFAULT CHARSET=gbk AUTO_INCREMENT=8' at line 1
Errno.: 1064
回复

使用道具 举报

sungggg 发表于 2006-12-26 22:39:13 | 显示全部楼层
啊哈!好文!真是太好了
回复

使用道具 举报

ccttvv008 发表于 2007-1-3 19:42:58 | 显示全部楼层
Unknown system variable 'NAMES'

还是错误  希望有人能帮忙解决
回复

使用道具 举报

An_Apple 发表于 2007-1-5 02:07:03 | 显示全部楼层
  改过了,但还是不行,我的也是1064的错误!!
Discuz! info: MySQL Query Error

User: admin
Time: 2007-1-5 1:59am
Script: /bbs/admincp.php

SQL: CREATE TABLE `cdb_advertisements` ( `advid` mediumint(8) unsigned NOT NULL auto_increment, `available` tinyint(1) NOT NULL default '0', `type` varchar(50) NOT NULL default '0', `displayorder` tinyint(3) NOT NULL default '0', `title` varchar(50) NOT NULL default '', `targets` text NOT NULL, `parameters` text NOT NULL, `code` text NOT NULL, `starttime` int(10) unsigned NOT NULL default '0', `endtime` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`advid`)) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=gbk AUTO_INCREMENT=18
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 'DEFAULT CHARSET=gbk AUTO_INCREMENT=18' at line 1
Errno.: 1064
回复

使用道具 举报

tnrain 发表于 2007-1-10 09:54:05 | 显示全部楼层
我就是这个问题哈  谢了~  还在替换 哎  数据太大了 替换半天 卡死

顶你先~:)
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-26 01:48 , Processed in 0.027957 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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