jmokrauer
asked on
Locking & Unlocking Tables in MySql
I am using the following code:
LOCK TABLES matrix WRITE;
UPDATE matrix SET dollarsGained = dollarsGained - 10;
UNLOCK TABLES;
1) How doI check that the table is actually locked?
2) How do I just unlock the table 'matix' without unlocking all of them?
3) How do I check that the table is actually unlocked?
Server info:
MySQL 5.0.45-community-nt via TCP/IP
MySQL Client Version 5.1.11
MYISAM tables
LOCK TABLES matrix WRITE;
UPDATE matrix SET dollarsGained = dollarsGained - 10;
UNLOCK TABLES;
1) How doI check that the table is actually locked?
2) How do I just unlock the table 'matix' without unlocking all of them?
3) How do I check that the table is actually unlocked?
Server info:
MySQL 5.0.45-community-nt via TCP/IP
MySQL Client Version 5.1.11
MYISAM tables
See http://dev.mysql.com/doc/refman/5.0/en/internal-locking.html there all your questions are answerd
ASKER
I cannot seem to find the answers you refer to in that link. Would you cut and paste the actual text you are referring to that answer each of the three questions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.