求助,phpmyadmin导入sql文件提示1064错误
-- phpMyAdmin SQL Dump-- version 4.6.4
-- https://www.
--
-- Host: 127.0.0.1
-- Generation Time: 2019-01-03 18:46:09
-- 服务器版本: 5.7.14
-- PHP Version: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `wuliu`
--
-- --------------------------------------------------------
--
-- 表的结构 `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` varchar(50) CHARACTER SET utf8 DEFAULT NULL,
`password` varchar(50) CHARACTER SET utf8 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8;
--
-- 转存表中的数据 `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(2, 'admin', '123456');
-- --------------------------------------------------------
--
-- 表的结构 `info_information`
--
CREATE TABLE `info_information` (
`id` int(10) NOT NULL,
`expresscompany` varchar(20) CHARACTER SET utf8 NOT NULL,
`expressmanname` varchar(20) NOT NULL,
`tel` varchar(20) CHARACTER SET utf8 NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8;
--
-- 转存表中的数据 `info_information`
--
INSERT INTO `info_information` (`id`, `expresscompany`, `expressmanname`, `tel`) VALUES
(1, '顺丰快递', '张三', '18845095130'),
(2, '德邦快递', '李四', '15104554292'),
(3, '圆通快递', '王五', '15904313400');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `info_information`
--
ALTER TABLE `info_information`
ADD PRIMARY KEY (`id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- 使用表AUTO_INCREMENT `info_information`
--
ALTER TABLE `info_information`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
上面是我的代码,下面是报错提示
错误
静态分析:
分析时发现2个错误。
1.Unexpected beginning of statement. (near "phpMyAdmin" at position 0)
2.Unrecognized statement type. (near "SQL" at position 11)
SQL 查询:
phpMyAdmin SQL Dump SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"
MySQL 返回: 文档
#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 'phpMyAdmin SQL Dump
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"' at line 1