Solved

mysqldump longtext - longblob

Posted on 2006-11-29
3
1,521 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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