I am tring to import a database from another server that is 10gb in size the database came to me as 10 files xaa xab xac xad etc. I ran a command to dump the 10 files to 1 10gb file mydatabase.sql When I first tried to import via command line on fedora 7 I got an error I ran max_allowed_packet=32M and that fixed the first error now I get this after about 20 min of trying to import the database. I also created a blank database in phpmyadmin first then do the import via command line.

ERROR 1064 (42000) at line 56578: 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 ''����\0?JFIF\0????,?,\0\0��?�Exif\0\0II*\\0\0\0?\0??\0?\0\0\0�\0\0\0???\0?\0\' at line 1

Recommended Answers

All 5 Replies

To be on safe side, increase max_allowed_packet to 64M and increase the myisam_sort_buffer_size to speed up the index creation process.

ERROR 1064 (42000) at line 56578: 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 ''����\0?JFIF\0????,?,\0\0��?�Exif\0\0II*\\0\0\0?\0??\0?\0\0\0�\0\0\0???\0?\0\' at line 1

Which version of MySQL you are using?

version 5.0.45 the dump came from 4.1.11 I also tried 4.1.22 and get the same error Now I am back at 5.0.45

What should I increase myisam_sort_buffer_size to?

256M should be fine for myisam_sort_buffer_size. Do you have non-english characters in the dump file?

Why did you create one file of 10gb from 10 files? Did you try to import all 10 files one by one instead of importing one big file?

I'm going to try one by one I'll let you know how that goes

this database has pics and I think that is messing it up can I still import this

DROP TABLE IF EXISTS `GA_IMAGE`;
CREATE TABLE `GA_IMAGE` (
`Image_Key` varchar(10) NOT NULL default '',
`Image_Type` int(11) NOT NULL default '0',
`Image_Version` int(11) NOT NULL default '0',
`Segment_Num` int(11) NOT NULL default '0',
`Image_Format` int(11) default '0',
`Total_size` int(11) default NULL,
`Blob_Segment` mediumblob,
`File_Name` varchar(254) default NULL,
`File_Volume_Num` int(11) default NULL,
`File_Volume_Name` varchar(254) default NULL,
`thumbnail_blob` mediumblob,
`Last_Modified` datetime default NULL,
PRIMARY KEY (`Image_Key`,`Image_Type`,`Image_Version`,`Segment_Num`),
UNIQUE KEY `Image_Key` (`Image_Key`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `GA_IMAGE`
--


/*!40000 ALTER TABLE `GA_IMAGE` DISABLE KEYS */;
LOCK TABLES `GA_IMAGE` WRITE;
INSERT INTO `GA_IMAGE` VALUES ('1.0',0,0,0,0,NULL,'','1__1.0__,_.jpg',NULL,NULL,NULL,NULL),('12.1',0,0,0,0,65535,'ˇÿˇ‡\0JFIF\0\0\0d\0d\0\0ˇÏ\0Ducky\0\0\0\0\0d\0\0ˇ‚XICC_PROFILE\0\0\0HLino\0\0mntrRGB XYZ Œ\0\0 \0\01\0\0acspMSFT\0\0\0\0IEC sRGB\0\0\0\0\0\0\0\0\0\0\0\0\0\0ˆ÷\0\0\0\0\0”-HP \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0cprt\0\0P\0\0\03desc\0\0Ñ\0\0\0lwtpt\0\0\0\0\0bkpt\0\0\0\0\0rXYZ\0\0\0\0\0gXYZ\0\0,\0\0\0bXYZ\0\0@\0\0\0dmnd\0\0T\0\0\0pdmdd\0\0ƒ\0\0\0àvued\0\0L\0\0\0Üview\0\0‘\0\0\0$lumi\0\0¯\0\0\0meas\0\0\0\0\0$tech\0\00\0\0\0rTRC\0\0<\0\0gTRC\0\0<\0\0bTRC\0\0<\0\0text\0\0\0\0Copyright (c) 1998 Hewlett-Packard Company\0\0desc\0\0\0\0\0\0\0sRGB IEC61966-2.1\0\0\0\0\0\0\0\0\0\0\0sRGB IEC61966-2.1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0XYZ \0\0\0\0\0\0ÛQ\0\0\0\0ÃXYZ \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0XYZ \0\0\0\0\0\0o¢\0\08ı\0\0êXYZ \0\0\0\0\0\0bô\0\0∑Ö\0\0⁄XYZ \0\0\0\0\0\0$†\0\0Ñ\0\0∂œdesc\0\0\0\0\0\0\0IEC http://www.iec.ch\0\0\0\0\0\0\0\0\0\0\0IEC http://www.iec.ch\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0desc\0\0\0\0\0\0\0.IEC 61966-2.1 Default RGB colour space - sRGB\0\0\0\0\0\0\0\0\0\0\0.IEC 61966-2.1 Default RGB colour space - sRGB\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0desc\0\0\0\0\0\0\0,Reference Viewing Condition in IEC61966-2.1\0\0\0\0\0\0\0\0\0\0\0,Reference Viewing Condition in IEC61966-2.1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0view\0\0\0\0\0§˛\0_.\0œ\0ÌÃ\0\0\\û\0\0\0XYZ \0\0\0\0\0L V\0P\0\0\0WÁmeas\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0è\0\0\0sig \0\0\0\0CRT curv\0\0\0\0\0\0\0\0\0\0\0\n\0\0\0\0\0#\0(\0-\02\07\0;\0@\0E\0J\0O\0T\0Y\0^\0c\0h\0m\0r\0w\0|\0Å\0Ü\0ã\0ê\0ï\0ö\0ü\0§\0©\0Æ\0≤\0∑\0º\0¡\0∆\0À\0–\0’\0€\0‡\0Â\0Î\0\0ˆ\0˚\r%+28>ELRY`gnu|Éãíö°©±π¡…—Ÿ·ÈÚ˙&/8AKT]gqzÑéò¢¨∂¡À’‡Îı\0!-8COZfr~äñ¢Æ∫«”‡Ï˘ -;HUcq~åö®∂ƒ”·˛\r+:IXgwÜñ¶µ≈’ˆ\'7HYj{åùØ¿—„ı+=OatÜô¨ø“¯2FZnÇñ™æ“Á˚ % : O d y è § ∫ œ  ˚\n\n\'\n=\nT\nj\nÅ\nò\nÆ\n≈\n‹\nÛ

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.