把空间上的数据库备份下来后打算在本地导入,用SQLyog导入报告以下错误:
Query:
CREATE TABLE `ask_admin` (
`adminid` tinyint(3) unsigned NOT NULL default '0',
`adminname` char(30) NOT NULL default '',
`allowlogin` tinyint(1) default '0',
`allowadd` tinyint(1) default '0',
`allowdelete` tinyint(1) default '0',
`allowedit` tinyint(1) default '0',
`allowmanage` tinyint(1) default '0'
) ENGINE=MyISAM DEFAULT CHARSET=gbkError occured at:2007-09-09 21:45:04
Line no.:29
Error Code: 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 'DEFAULT CHARSET=gbk' at line 9请问怎么解决
Query:
CREATE TABLE `ask_admin` (
`adminid` tinyint(3) unsigned NOT NULL default '0',
`adminname` char(30) NOT NULL default '',
`allowlogin` tinyint(1) default '0',
`allowadd` tinyint(1) default '0',
`allowdelete` tinyint(1) default '0',
`allowedit` tinyint(1) default '0',
`allowmanage` tinyint(1) default '0'
) ENGINE=MyISAM DEFAULT CHARSET=gbkError occured at:2007-09-09 21:45:04
Line no.:29
Error Code: 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 'DEFAULT CHARSET=gbk' at line 9请问怎么解决
解决方案 »
- 请问怎么修改mysql默认的数据库存储路径? 急ing!!
- 高并发下2台服务器本地的变量之间如何进行通信?
- 如何用creat执行一次查询,建立多个表,也就是一次执行一堆creat创建多个表
- 求救高人!INSERT command denied to user 'mydb'@'192.1.169.2'
- 求一个随机取N条不重复数据的SQL语句
- ODBC局域网连接mysql,客户端怎样才能备份整个数据库?
- 用Delphi连接mysql有个奇怪的问题,急求帮助!!!!!!
- SQL语句修改时间戳。
- mysql插入相同数据并更新关键键值的问题
- mysql如何调用批处理文件
- 对此结果.我无语
- 请问select和distinct可以组合吗?
(0 ms taken)我的上面没有任何问题。
你的版本是多少?