dump-backup memory errors
Posted: Tue 30 Aug 2005 18:28
mysqldirect 3.0
I seem to be having a problem with the backup function MySqlDump.Backup. For a small database it seems to work very good and fast, yet for databases over 130 meg it dies during backup with a memory error unless I use
AddHandler MySqlDump.Progress, New MySqlDumpProgressEventHandler(AddressOf WriteProgress)
then it will continue through the backup with tables/databases less than 140 meg yet if I take this addhandler line out it dies with the aforementioned memory error.
I have also found that in trying to save the dumptext with the example of unicode encoding with stream.write it dies yet if I use just streamwriter it works. I am running this on a 2000 machine with a couple gig of ram and plenty of drive space.
My question is what can I do about this? I really need this functionality yesterday I mean what good is a live database if you can't back it up. Is there a way I can use the addhandler function to do something like the .progress yet to get the data and write that out as the backup progresses without going through dumptext? or can I increase the amount of memory uses from the 500 meg that the process appears to need from the task manager screen?
What I would like to be able to do is
function setup write data
function write data
function backup
turn off dump text
addhandler write data
make table strings
backup
since backup has a memory error I would assume restore would has the same memory error and since I have your attention is there someway around that error also
thanks for your time
I seem to be having a problem with the backup function MySqlDump.Backup. For a small database it seems to work very good and fast, yet for databases over 130 meg it dies during backup with a memory error unless I use
AddHandler MySqlDump.Progress, New MySqlDumpProgressEventHandler(AddressOf WriteProgress)
then it will continue through the backup with tables/databases less than 140 meg yet if I take this addhandler line out it dies with the aforementioned memory error.
I have also found that in trying to save the dumptext with the example of unicode encoding with stream.write it dies yet if I use just streamwriter it works. I am running this on a 2000 machine with a couple gig of ram and plenty of drive space.
My question is what can I do about this? I really need this functionality yesterday I mean what good is a live database if you can't back it up. Is there a way I can use the addhandler function to do something like the .progress yet to get the data and write that out as the backup progresses without going through dumptext? or can I increase the amount of memory uses from the 500 meg that the process appears to need from the task manager screen?
What I would like to be able to do is
function setup write data
function write data
function backup
turn off dump text
addhandler write data
make table strings
backup
since backup has a memory error I would assume restore would has the same memory error and since I have your attention is there someway around that error also
thanks for your time