Can I call update/insert into table(tb1) after calling: LOCK TABLES tb1 READ?
I’ve read the MySQL manual which says about read lock:
The session that holds the lock can read the table (but not write it).
I’m looking for a lock which allows me to READ/WRITE a table but allowing others only READ access.
How to do it?
Mine is MyISAM database.
You can’t do it in MySQL. The best way is to use
WRITElock but then all other sessions will have to wait for ability to read from table.