List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:May 5 1999 7:02pm
Subject:Re: mysqldump problem
View as plain text  
At 2:25 PM -0400 5/5/1999, Vivek Khera wrote:
>>>>>> "g" == glen  <glen@stripped> writes:
>>> >
>>> > mysqldump: Out of memory (Needed 8164 bytes)
>>> > mysqldump: Got error: 2008: MySQL client run out of memory
>
>g> no the problem is that CLIENT runs out of memory, that is mysqldump in this
>g> case
>g> i don't get it why mysqldump needs so much memory, there's no sorting or
>g> whatsover
>
>You may wish to investigate the "--quick" option to mysqldump.

Specifically, the problem is that mysqldump by default uses
mysql_store_result(), which reads the *entire* result set to the
client all at once.  With a huge table, you can see the problem.
With --quick, mysqldump uses mysql_use_result(), which reads rows
from the server a row at a time.

Just don't type ^Z while you're in the middle of dumping your
table.

--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/
Thread
mysqldump problemglen5 May
  • Re: mysqldump problemFraser MacKenzie5 May
    • Re: mysqldump problemglen5 May
      • Re: mysqldump problemVivek Khera5 May
        • Re: mysqldump problemPaul DuBois5 May
    • Problem with mysqlimport under dec-osfFabrice Marchal5 May
      • Problem with mysqlimport under dec-osfJani Tolonen11 May
    • Re: mysqldump problemChristian Mack5 May