Hi folks,
I'm looking for some advice on how to lock tables with perl and mySQL?
After makeing a connection, I can lock a table with the following code:-
$dbh->do('LOCK TABLES user WRITE');
This works fine if I try and access the user table with the same $dbh handle, but when I log on useing a different $dbh handle, there is no lock on the table and I can access and update records.
Any thoughts, your help would be much appreciated.
Cal
I'm looking for some advice on how to lock tables with perl and mySQL?
After makeing a connection, I can lock a table with the following code:-
$dbh->do('LOCK TABLES user WRITE');
This works fine if I try and access the user table with the same $dbh handle, but when I log on useing a different $dbh handle, there is no lock on the table and I can access and update records.
Any thoughts, your help would be much appreciated.
Cal