In answer to Paul's response: Line 54 does the following: $sth->execute() or die $sth->errstr;
in the following chunk of code that is in my Perl script: # update the gpa of 1000 random students for ($i = 1 ; $i <= $num_updates ; $i++) { $r = int(rand(9999)) + 1; $sth=$dbh->prepare("update $table set gpa = gpa+0.01 where student_id = $r") or die $dbh->errstr; $sth->execute() or die $sth->errstr; } On Sun, 8 Dec 2002, Paul DuBois wrote: > At 23:09 -0500 12/8/02, Geetika Tewari wrote: > >Hi, > > > >I am getting the following error while trying to do read-write queries on > >MySQL. Does anyone know what this error means? > >The name of the script that generated this error is called > >randomreadwrite.pl. > > > >Can't lock file (errno: 12) at ./randomreadwrite.pl line 54. > > > >Thanks very much. > > > Without knowing more about the script, it's difficult to say. > Does line 54 perform some MySQL operation, or is it doing some > filesystem operation for itself, for example. It may not be a > MySQL-related error at all. > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php