Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase 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 Codewalkers Forums Sponsor:
  #1  
Old December 28th, 2003, 05:54 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
"MySQL server has gone away" Error

I having some trouble with this and would appreciate someones help.

I have a script that allows users to upload pictures. The script puts the pictures in a blob in MySQL. The script works fine - I have tested it numerous times with relatively small files.

However, when I upload a larger file (above 1MB) I get the "MySQL server has gone away" error.

Ive looked up the error in the MySQL documentation and found this:
------
If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by starting mysqld with the -O max_allowed_packet=# option (default 1M).
------

Now, I am using MySQL on a server provided by a shared hoster (Interland). I dont know much about the innards of MySQL. Can I still do this? If not, is there some way around this?

Thanks a lot for any help.

Joe


Reply With Quote
  #2  
Old December 28th, 2003, 04:03 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 902 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 43 m 54 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: "MySQL server has gone away" Error

I'd have the image files be saved as actual files rather than mysql.

Reply With Quote
  #3  
Old February 16th, 2004, 05:39 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: "MySQL server has gone away" Error

I use Perl. I ran into the same problem. I am not sure whether the 1 MB is for the entire data for the row or just the BLOB column. In any case, I got around the problem by reducing the size of the image using PerlMagick before storing the image. This may not be a solution if you wish to retain the size of the image.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > "MySQL server has gone away" Error


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway