![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
$BACKUP/backup.sql |
#2
| |||
| |||
|
|
I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. |
#3
| |||
| |||
|
|
On 2011-02-17 18:50, Ignoramus5243 wrote: I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. Can you post the table definition? |
#4
| |||
| |||
|
|
On 2011-02-17, Lennart Jonsson <erik.lennart.jonsson (AT) gmail (DOT) com> wrote: On 2011-02-17 18:50, Ignoramus5243 wrote: I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. Can you post the table definition? CREATE TABLE $SILENT_TABLE_CREATION manuals ( id INTEGER UNIQUE AUTO_INCREMENT, name VARCHAR( 64 ), # TM-123-4567-89 title BLOB, # FOOBAR-005B OPERATOR'S MANUAL AND PARTS LIST original_data $PDF_BLOB_TYPE,# %PDF... ... ... ... processed_data $PDF_BLOB_TYPE,# %PDF... ... ... ... author VARCHAR( 32 ), # USG for govt source VARCHAR( 32 ), # logsa status VARCHAR( 16 ), # failed|downloaded|watermarked category1 INTEGER, category2 INTEGER, category3 INTEGER, category4 INTEGER, last_update DATETIME, INDEX index_by_name( name ), UNIQUE INDEX index_by_name_and_author( name, author ) ) ENGINE=$DEFAULT_ENGINE; |
#5
| |||
| |||
|
|
On 17-02-11 19:36, Ignoramus5243 wrote: On 2011-02-17, Lennart Jonsson <erik.lennart.jonsson (AT) gmail (DOT) com> wrote: On 2011-02-17 18:50, Ignoramus5243 wrote: I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. Can you post the table definition? CREATE TABLE $SILENT_TABLE_CREATION manuals ( id INTEGER UNIQUE AUTO_INCREMENT, name VARCHAR( 64 ), # TM-123-4567-89 title BLOB, # FOOBAR-005B OPERATOR'S MANUAL AND PARTS LIST original_data $PDF_BLOB_TYPE,# %PDF... ... ... ... processed_data $PDF_BLOB_TYPE,# %PDF... ... ... ... author VARCHAR( 32 ), # USG for govt source VARCHAR( 32 ), # logsa status VARCHAR( 16 ), # failed|downloaded|watermarked category1 INTEGER, category2 INTEGER, category3 INTEGER, category4 INTEGER, last_update DATETIME, INDEX index_by_name( name ), UNIQUE INDEX index_by_name_and_author( name, author ) ) ENGINE=$DEFAULT_ENGINE; can you post the output of SELECT length(title), length(original_data), length(processed_data), length(title)+length(original_data)+length(process ed_data), FROM manuals ORDER BY length(title)+length(original_data)+length(process ed_data) DESC LIMIT 5 I'll bet the largest one is >512Mb ? |
#6
| |||
| |||
|
|
I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. I have max_allowed_packet set to 512MB for mysql. I back up with these options: mysqldump --max-allowed-packet=512M \ --quick \ -uuserid -ppassw0rd mydb \ $BACKUP/backup.sql and yet I get this error. What gives??? mysql is 5.1. thanks i |
#7
| |||
| |||
|
|
On Thu, 17 Feb 2011 11:50:40 -0600, Ignoramus5243 wrote: I have a InnoDB table that holds large BLOB objects containing PDF files, some of which are up to 100 megs. I have max_allowed_packet set to 512MB for mysql. I back up with these options: mysqldump --max-allowed-packet=512M \ --quick \ -uuserid -ppassw0rd mydb \ $BACKUP/backup.sql and yet I get this error. What gives??? mysql is 5.1. thanks i You may also want to look at --hex-blob as well, even though it will make your output even bigger. It would be annoying to have solved this problem only to end up with something that couldn't be imported back in... |
![]() |
| Thread Tools | |
| Display Modes | |
| |