Keep It Simple, Stupid | |
PerlMonks |
DBD::mysql::st execute failed (Errcode: 28)by kingquattro (Novice) |
on Jan 10, 2014 at 16:54 UTC ( [id://1070151]=perlquestion: print w/replies, xml ) | Need Help?? |
kingquattro has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using Perl DBI to query a table and convert it into a mldbm indexed lookup file (this is required, I can't make too many sql lookup statements). Recently while updating my lookup file I ran into this error DBD::mysql::st execute failed: Error writing file '/tmp/MYj3WD8H' (Errcode: 28) I can't seem to resolve this, and am hoping someone can point me in right direction. The error occurs during $sth->execute() statement. I have tried to use limit statement in my mysql query but that works for first few iteration and then fails with same error. I can't figure out how to change the location of tmpdir so as to avoid this issue (/tmp does not have enough space for select statement to execute successfully). I tried to add tmpdir= in connect statement as follows but that didn't help either. $dbh = DBI->connect("DBI:mysql:database=$DBNAME;tmpdir=$TMPDIR;host=$HOST,$USER, $PASS", {PrintError=>1, RaiseError =>1, AutoCommit =>1}); Any suggestions? Thank you
Back to
Seekers of Perl Wisdom
|
|