Can anyone please help! - I have a large table in a MySQL 5.5 database. It is a table which holds a mixture of blobs/binary data and just data rows with links to file paths. It has just over a million rows. I am having desperate problems in getting the data out of this table to migrate it to another server. I have tried all sorts - mysqldump (with and without -quick), dumping the results of a query via the command line. Using a MySQL admin tool (Navicat) to open and export the data to file, CSV, or do a data transfer (line by line) to another DB and/or another server but all to no avail. When trying to use the DB admin tool (Navicat), it gets to approx 250k records and then fails with an "Out of memory" error. I am not able to get any error messages from the other processes I have tried, but they seem to fall over at approximately the same number of records. I have tried playing with the MySQL memory variables (buffer size, log file size, etc) and this does seem to have an effect on where the export stops (currently I have actually made it worse). Also - max_allowed_packet is set to something ridiculously large as I am aware this can be a problem too. I am really shooting in the dark, and I keep going round and round trying the same things and getting no further. Can anyone give me any specific guidance, or recommend perhaps any tools which I might be able to use to extract this data out?? Thanks in hope and advance! A little more information below - following some questions and advice: The size of the table I am trying to dump - it is difficult to say, but the sql dump gets to 27gb when the mysqldump dies. It could be approximately 4 times that in total. I have tried running the following mysqldump command:
And this gives the error:
The server has 8gb RAM, Some of the relevant settings copied below. It is an INNODB database/table.
ada yang punya tutorial yang mudah mengenai pertanyaan saya di atas? saat ini sedang belajar autobackup via cmd tp lumayan membingungkan... saya ada tutorialnya dr bahasa itali , kalau diterjemahkan seperti ini : Cara backup database MySQL pada Windows 1. Buat file "c: \ backup \ Backup.bat", buka dengan editor teks favorit Anda dan menggunakan sintaks berikut untuk DB masing-masing untuk dimasukkan dalam prosedur backup otomatis: mysqldump-u [USERNAME]-p [MASUKKAN PASSWORD] - opt [NAMA DATABASE]> [BackupFile] Inilah yang isi sampel Backup.bat berkas terdiri dari dua database: September dt = tanggal%: ~ 6,4% - tanggal%: ~ 3,2% - tanggal%: ~ 0,2% [Catatan: Perintah ini menyediakan generasi dari file cadangan dengan tanggal hari ini otomatis ditambahkan dalam format "YYYY-MM-DD" dan berhubungan dengan sistem operasi dikonfigurasi untuk bahasa Italia.] AT 00:00 / SETIAP: m, t, w, th, f, s, c: \ backup \ Backup.bat Pada titik ini Anda hanya perlu historicize (mungkin di tape atau CD) file cadangan dihasilkan. saya praktekkan seperti ini : saya buat folder backup di C, Set dt = tanggal%: ~ 6,4% - tanggal%: ~ 3,2% - tanggal%: ~ 0,2% lalu saya buka cmd masuk ke direktori c:\backup\ lalu mengetikkan perintah : begini yang dapat saya tangkap dari tutorial di atas... kalau ada yang punya pengalaman , mohon pencerahannya... |