Link to home
Start Free TrialLog in
Avatar of jmokrauer
jmokrauerFlag for United States of America

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
Avatar of hernst42
hernst42
Flag of Germany image

See http://dev.mysql.com/doc/refman/5.0/en/internal-locking.html there all your questions are answerd
Avatar of jmokrauer

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
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial