MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 14th, 2000, 03:39 PM
johnc johnc is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Posts: 1 johnc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have a database running at what I thought was a good hosting service. I think it is running on a pentium pro or pentium ii, under free bsd, as that is what their listed servers all are. My db has about 150,000 rows and 10 columns (two of these are 255-byte chars, the rest are tinyints except for a 4-byte char, two 3-byte date columns, and one full int).

I find that update queries to modify one of the columns (e.g. "update tags set topicint=$newint where topicint=$oldint") often cause a 'connection lost' or 'mysql server has gone away' error message.

I was using php to do the updates but I'm not using the db for any of the calculations - I wrote a script locally to generate the php mysql update statements and then ran the resulting php script just to send the update statements to the mysql server. I got 'connection lost' etc. and I also occasionally got 'out of memory' errors.

I saw in the mysql manual that queries with long results can cause 'out of memory' and sometimes 'connection lost', and that running the queries using the mysql client with the -q option will use less memory.

So I changed my local script to make it generate plain mysql statements and I fed them into the mysql client, using the -q option, from a text file on the server.

I still get the 'lost connection' err msgs and my db got corrupted yet again. The technical support at my hosting service has pointed out that it is my queries which cause these errors and crash the mysqld daemon, and I have no doubt about that. But it seems like their system should be able to handle my queries.

Anyhow, what can be done to stop them? Can you help?


Thanks,
John Clements

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > update crashes mysql. is db too big for its server?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap