Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mySQL LOCK TABLES

Status
Not open for further replies.

medine

Programmer
Jun 20, 2002
4
GB
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

 
Thanks for your reply Barbie,

I've read over all I can find on mySQL's documentation and I still can't figure out why it will not work?

Cal

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top