Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does this error mean, going from 4.1 to 4.0?

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
help! i can't seem to get this to work...

There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:
----BEGIN CUT----
eNqdUMFugkAUPHe/Ypp4MuyyS8HKJk2kSNUExbLUHg3iJpKgULCm/TYP/aT+Qpeee+rkveRlMm/m
5UVpmqQSoUDoII5WEgIOHO4TlRn+Ski4URKDxV6ie6uavO10y6pyx5pDY13gMOfeyLlrC2FzD5xL
V0jPQ6WPPqKPBgOy/FTPsYTLOHNc8qJSJMpCMItWmYVNZGJeyxMWEUaMk/UykMZ1xARtKoes5+te
YiWqN7hjQuCp1fpRTUkcrGYS+kTLrqbjsedTQX6Dvq9flOI3Ffv3YwPBmU8oNYV53Z0lqrrIq4MZ
YTDNz/ku77REURS9hv4L/abS7UW3MN2V9enGZcIcTIg9vHW54AIqyjBJ4uk2nAdpEGZRujXUNowX
5hcPk8lfNIb2DwL9ar0=
----END CUT----
----BEGIN RAW----

ERROR: C1 C2 LEN: 1 2 209
STR: »

CVS: $Id: sqlparser.lib.php,v 2.27 2004/11/05 00:41:55 lem9 Exp $
MySQL: 4.0.24
USR OS, AGENT, VER: Win IE 6.0
PMA: 2.6.1-pl2
PHP VER,OS: 4.3.11 FreeBSD
LANG: en-iso-8859-1
SQL: -- MySQL dump 10.9
--
-- Host: localhost Database: ccc
-- ------------------------------------------------------
-- Server version 4.1.11

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
----END RAW----
SQL-query:

-- MySQL dump 10.9 -- -- Host: localhost Database: ccc -- ------------------------------------------------------ -- Server version 4.1.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
MySQL said:

#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 '-- MySQL dump 10.9
--
-- Host: localhost Database: ccc

any ideas?

- g
 

i am running 4.1.11 on my box, and i'm dumping my db and putting to server via phpmyadmin, running mysql 4.0.24...

here's my dump file and it's not taking it...

Code:
-- MySQL dump 10.9
--
-- Host: localhost    Database: ccc
-- ------------------------------------------------------
-- Server version	4.1.11

/*!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 utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `offers`
--

DROP TABLE IF EXISTS `offers`;
CREATE TABLE `offers` (
  `offerID` int(4) unsigned zerofill NOT NULL auto_increment,
  `offerHot` varchar(100) NOT NULL default '',
  `offerName` varchar(100) NOT NULL default '',
  `offerName2` varchar(100) NOT NULL default '',
  `offerType1` varchar(100) NOT NULL default '',
  `offerType2` text NOT NULL,
  `offerLink` text NOT NULL,
  `offerImgSmall` text NOT NULL,
  `bannerImg` text NOT NULL,
  `rightNavImg` text NOT NULL,
  `offerPitch` text NOT NULL,
  `offerTitle` text NOT NULL,
  PRIMARY KEY  (`offerID`)
) ENGINE=MyISAM;

--
-- Dumping data for table `offers`
--


/*!40000 ALTER TABLE `offers` DISABLE KEYS */;
LOCK TABLES `offers` WRITE;
INSERT INTO `offers` VALUES (

//dump info here (tables)

);
UNLOCK TABLES;
/*!40000 ALTER TABLE `offers` ENABLE KEYS */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

any ideas?

- g
 
i've never seen it before, but just a WAG would be that you're going down a version, which might include incompatible data/features


-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top