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 youIn reply to DBD::mysql::st execute failed (Errcode: 28) by kingquattro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |