Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

mysqldump longtext - longblob

Posted on 2006-11-29
3
Medium Priority
?
1,638 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 1500 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 Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

926 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