I have a MySQL database with a MyISAM structure. I know that the update instruction locks the table, but does the lock prevent reading, or simply prevent others from inserting, deleting, and updating the table?
from http://dev.mysql.com/doc/refman/5.1/en/internal-locking.html :
MySQL uses row-level locking for InnoDB Table and table-level locking for MyISAM, MEMORY, and MERGE tables.
So, you will have a table-level lock record, which means you can access the table according to http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html
Only the session that holds the lock can access the table.
I am not a MySQL expert, but if you want to prevent reading, have you read the LOCK TABLES command?
LOCK TABLES
Source: https://habr.com/ru/post/1334508/More articles:Finding CPU time in Windows from the command line - windowsChrome: how to close a tab inside a page? - google-chrome-extensionIs there an easy way to add a check mark to the tip of a balloon? - c #Open application on specified page using Push Notification - iosHow to activate foreign keys in C using sqlite? - cUnderstanding this CSV header - javaCalculate page generation time - Django - pythonLoading css dynamically in ASP.NET - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1334512/are-there-non-aesthetic-differences-to-consider-between-hinting-techniques-when-writing-in-cfscript&usg=ALkJrhijPF2BZl2kKoK0dSkUlppNdHhCwQCannot use LVM_GETITEMTEXT without crashing target application in C ++ - c ++All Articles