[英]I have a sql dump I'm trying to import but I get a syntax error
2 errors were found during analysis.分析过程中发现2个错误。
phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2017 at 04:16 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 12' at line 1
fixed by:固定:
Skip this number of queries (for SQL) starting from the first one: 1 (instead of 0)从第一个开始跳过这个数量的查询(对于 SQL):1(而不是 0)
--
indicates a comment in SQL . --
表示 SQL 中的注释。 I imagine your dump was supposed to look like this with everything up to SET SQL_MODE ...
being a comment.我想你的转储应该看起来像这样,直到SET SQL_MODE ...
作为评论。
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net --
-- Host: 127.0.0.1
-- Generation Time: Apr 12, 2017 at 04:16 AM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.