php forum
php mysql forum
php mysql smarty
 
Topic Options
#226651 - 10/21/02 11:32 PM ahhhhhhhh!!!!
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
WHY WHY WHY, it always happens like this. I do backups of my db once every few days, never ONCE encountered a problem. Well, tonight, I announced to everyone I was moving to our new dedicated server at midnight. <br /><br />So, I closed the forums, went into SSH and typed my typical mysqldump command.. and get this!!!!<br /><br /><pre><font class="small">code:</font><hr>mysqldump: Out of memory (Needed 8164 bytes)<br />mysqldump: Got error: 2008: MySQL client run out of memory when retrieving data from server</pre><hr><br /><br />AHHH!!!!! I should have been already live and on my new server, but this all of a sudden happens. Never once in over a year seen this problem, and of course it happens at the worst possible time.<br /><br />So, just wondering, will this go away when the server starts using less ram, or is it one of those things the server may need a reboot to free everything up? Last time a server with this host crashed they disabled my database saying it was my fault! I just want to get my DB off from their server and run, I'm sick of this crap. <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#226652 - 10/22/02 08:28 AM Re: ahhhhhhhh!!!! [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Wow, that was stupid. I was up until 4am waiting for it to work, trying other methods... NOTHING. So I go to bed, wake up first thing and try again, it still didn't work!<br /><br />finally, for fun I tried using the --quick flag. And WTF it worked! (I think) I tried the word quick as a joke, then after looking it up it may have really been what I needed *shakes head*

Top
#226653 - 10/22/02 12:46 PM Re: ahhhhhhhh!!!! [Re: palmen]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
That could make sense.<br /><br />The mysqldump documentation says Note that if you run mysqldump without --quick or --opt, mysqldump will load the whole result set into memory before dumping the result. This will probably be a problem if you are dumping a big database.<br /><br />The description for the --quick option is Don't buffer query, dump directly to stdout. Uses mysql_use_result() to do this.<br /><br />I use the following options for backups: --quick --add-drop-table --add-locks --lock-tables.<br /><br />The --opt option, as suggested by the MySQL manual, includes all of the above options with the addition of --extended-insert (Use the new multiline INSERT syntax, for more compact and faster inserts statements.). I omit the --extended-insert option since it makes it more difficult to view or edit the dump file with a text editor, should that be desired.<br /><br /><br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top


Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks