我有一个 .sql 文件,我想将它加载到 MySQL 数据库中。我不知道它是从哪个数据库(MySQL 或 MS-SQL)创建的。
现在,我正在尝试将该文件导入 MySQL 数据库。它在导入和执行该文件时显示错误。
Q1。所以,我的问题是从 MySQL 和 MS-SQL 生成的 .sql 文件是否不同?
注意:我正在使用 SQLYog 软件(MySQL 的图形界面)来导入文件。
这是错误:
查询: CREATE TABLE
ads
(id
bigint(20) NOT NULL auto_increment,city_id
int(11) NOT NULL,type
text collate utf8_bin NOT NULL,town
text collate utf8_bin NOT NULL,address
text collate utf8_bin NOT NULL,price
text collate utf8_bin NOT NULL,info
text collate utf8_bin NOT NULL,link
text collate utf8_bin NOT NULL,hasImage
int(11) NOT NULL,language
varchar(2) collate utf8_bin NOT NULL,time_added
varchar(255) collate utf8_bin NOT NULL, PRIMARY KEY (id
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1
错误发生在:2009-09-08 17:41:01 行号:35 错误代码:1050 - 表“广告”已存在
查询: CREATE TABLE
ads
(id
bigint(20) NOT NULL auto_increment,city_id
int(11) NOT NULL,type
text collate utf8_bin NOT NULL,town
text collate utf8_bin NOT NULL,address
text collate utf8_bin NOT NULL,price
text collate utf8_bin NOT NULL,info
text collate utf8_bin NOT NULL,link
text collate utf8_bin NOT NULL,hasImage
int(11) NOT NULL,language
varchar(2) collate utf8_bin NOT NULL,time_added
varchar(255) collate utf8_bin NOT NULL, PRIMARY KEY (id
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1
错误发生在:2009-09-08 17:41:21 行号:35 错误代码:1050 - 表“广告”已存在
查询: CREATE TABLE
ads
(id
bigint(20) NOT NULL auto_increment,city_id
int(11) NOT NULL,type
text collate utf8_bin NOT NULL,town
text collate utf8_bin NOT NULL,address
text collate utf8_bin NOT NULL,price
text collate utf8_bin NOT NULL,info
text collate utf8_bin NOT NULL,link
text collate utf8_bin NOT NULL,hasImage
int(11) NOT NULL,language
varchar(2) collate utf8_bin NOT NULL,time_added
varchar(255) collate utf8_bin NOT NULL, PRIMARY KEY (id
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1
错误发生在:2009-09-08 17:41:35 行号:35 错误代码:1050 - 表“广告”已存在
查询: CREATE TABLE
ads
(id
bigint(20) NOT NULL auto_increment,city_id
int(11) NOT NULL,type
text collate utf8_bin NOT NULL,town
text collate utf8_bin NOT NULL,address
text collate utf8_bin NOT NULL,price
text collate utf8_bin NOT NULL,info
text collate utf8_bin NOT NULL,link
text collate utf8_bin NOT NULL,hasImage
int(11) NOT NULL,language
varchar(2) collate utf8_bin NOT NULL,time_added
varchar(255) collate utf8_bin NOT NULL, PRIMARY KEY (id
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1
错误发生在:2009-09-08 17:42:07 行号:35 错误代码:1050 - 表“广告”已存在
查询:1 斯坦福大学 6700 http://www.orkut.co.in 。. .