Solved

mysqldump longtext - longblob

Posted on 2006-11-29
3
1,544 Views
Last Modified: 2008-01-09
I need to backup my datas in my table. There is longtext field with a huge data in it.

I used mysqldump command to backup my table, it didn't give me correct result. I have 1000 records approx., but i got only 3 of them insert value. Is there any parameter for it.

I heard about max_allowed_packets. If this will be the solution can you write the exact solution (no suggestions please!).

0
Comment
Question by:tolgaong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Expert Comment

by:Raynard7
ID: 18040925
The answer to this question involves what error that you are getting.

Generally speaking if mysql dump produces a sql file then you should be able to import it.  If it does not import there is generally an error at the statement it had problems with and will stop processing from that point.

If the error is that there was an SQL format error then you may need to edit the dump file, if the error was insufficient memory you would need to change the value for max_allowed_packets in the my.cnf / my.ini so something larger (it is in bytes)

0
 
LVL 9

Author Comment

by:tolgaong
ID: 18041396
Remote Server - Linux - Mysql 5.0.16
Local Server  - XP Mysql 5

mysqldump --skip-opt --add-drop-table --add-locks --create-options  --order-by-primary  -uxxxxx -pxxxxxxx xxxxxx xxxxx_cities >c:\xxx.sql

When i wrote with these attributes it gives me the correct values, i don't know why. Now it gives me each insert with new line. And it's solved. maybe mysqldump not use general syntax... Cause i suffered some other problems... I will be glad, if you advice me the way for all operating systems to backup my data.

Thanks






0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 18041550
This depends on what tables you are using.

I've had many more problems using mysqldump than just copying my myisam data files to other systems (cross linux / windows...) but I have not been able to get this to work with innodb.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question