If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to test table locking?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-11-11, 10:47
cancer10 cancer10 is offline
Registered User
 
Join Date: Mar 2008
Posts: 33
Question How to test table locking?

Hi

I have been reading this tutorial to learn how to read/write lock a table.

But I wish to know how do I test it?

I ran the command

Code:
LOCK TABLE users WRITE;
The above code should ideally lock the table for reading/writing to other connections. But when I open phpmyadmin in another browser, i can still read the data of that table.

Is there anyway to test if its working?

Database: MySQL 5.1.41-3
Table Type: MyISAM

Thanks in advance
__________________
Interview Questions & Answers - www.focusinterview.com
http://outlineme.com/cancer10
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On