kingquattro has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::mysql::st execute failed (Errcode: 28)
by nikosv (Deacon) on Jan 10, 2014 at 22:05 UTC | |
|
Re: DBD::mysql::st execute failed (Errcode: 28)
by wazat (Monk) on Jan 11, 2014 at 05:15 UTC | |
by kingquattro (Novice) on Jan 11, 2014 at 17:08 UTC | |
|
Re: DBD::mysql::st execute failed (Errcode: 28)
by taint (Chaplain) on Jan 10, 2014 at 18:47 UTC |