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

In reply to DBD::mysql::st execute failed (Errcode: 28) by kingquattro

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.