Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: MySQL gone Away

by xtype (Deacon)
on Oct 14, 2002 at 14:10 UTC ( [id://205082]=note: print w/replies, xml ) Need Help??


in reply to MySQL gone Away

You are trying to execute a query larger than your max_allowed_packet perhaps?

And you could be reading your file with read
open(FILE,"<".$filename) || die ("Could not open FILE"); my $size = -s $fname; my $data; read FILE, $data, $size; $sth->execute($pid, $_, $data, $public) if $data; close(FILE);
After checking and possibly adjusting your max_allowed_packets (else if you cannot adjust it) you could do something along the lines of this: Handling huge BLOB fields with DBI and MySQL

-xtype

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://205082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-16 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found