我导出了一个 Mysql 数据库,但在导入到较新版本时遇到语法问题
I have exported a Mysql Database, and am having syntax issues importing to a newer version
我正在尝试将 Mysql 数据库导入更新域上的新实例。我收到以下语法错误,我无法弄清楚哪里出了问题,我尝试的一切都不起作用。
你能帮忙吗?
SQL查询:
--
-- Database: 'pringlerfe'
-- -- --------------------------------------------------------
--
-- Table structure for table `adverts`
--
CREATE TABLE `adverts` (
`advers_id` INT( 11 ) NOT NULL ,
`advers_name` VARCHAR( 50 ) DEFAULT NULL ,
`advers_sqimg` VARCHAR( 50 ) DEFAULT NULL ,
`advers_squrl` VARCHAR( 100 ) DEFAULT NULL ,
`advers_towerimg` VARCHAR( 50 ) DEFAULT NULL ,
`advers_url` VARCHAR( 100 ) DEFAULT NULL ,
`advers_des` VARCHAR( 100 ) DEFAULT NULL ,
`advers_display` VARCHAR( 50 ) DEFAULT NULL
) ENGINE = MYISAM DEFAULT CHARSET = latin1;
MySQL said: Documentation
#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 '
--
-- Table struc' at line 3 `
CREATE TABLE adverts (
advers_id int NOT NULL,
advers_name varchar( 50 ) DEFAULT NULL,
advers_sqimg VARCHAR( 50 ) DEFAULT NULL,
advers_squrl VARCHAR( 100 ) DEFAULT NULL,
advers_towerimg VARCHAR( 50 ) DEFAULT NULL,
advers_url VARCHAR( 100 ) DEFAULT NULL,
advers_des VARCHAR( 100 ) DEFAULT NULL,
advers_display VARCHAR( 50 ) DEFAULT NULL
);
我正在尝试将 Mysql 数据库导入更新域上的新实例。我收到以下语法错误,我无法弄清楚哪里出了问题,我尝试的一切都不起作用。
你能帮忙吗?
SQL查询:
--
-- Database: 'pringlerfe'
-- -- --------------------------------------------------------
--
-- Table structure for table `adverts`
--
CREATE TABLE `adverts` (
`advers_id` INT( 11 ) NOT NULL ,
`advers_name` VARCHAR( 50 ) DEFAULT NULL ,
`advers_sqimg` VARCHAR( 50 ) DEFAULT NULL ,
`advers_squrl` VARCHAR( 100 ) DEFAULT NULL ,
`advers_towerimg` VARCHAR( 50 ) DEFAULT NULL ,
`advers_url` VARCHAR( 100 ) DEFAULT NULL ,
`advers_des` VARCHAR( 100 ) DEFAULT NULL ,
`advers_display` VARCHAR( 50 ) DEFAULT NULL
) ENGINE = MYISAM DEFAULT CHARSET = latin1;
MySQL said: Documentation
#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 '
--
-- Table struc' at line 3 `
CREATE TABLE adverts (
advers_id int NOT NULL,
advers_name varchar( 50 ) DEFAULT NULL,
advers_sqimg VARCHAR( 50 ) DEFAULT NULL,
advers_squrl VARCHAR( 100 ) DEFAULT NULL,
advers_towerimg VARCHAR( 50 ) DEFAULT NULL,
advers_url VARCHAR( 100 ) DEFAULT NULL,
advers_des VARCHAR( 100 ) DEFAULT NULL,
advers_display VARCHAR( 50 ) DEFAULT NULL
);