I try and load tables via MySQL and get the following error?
MySQL said: Table \'cms\' was not locked with LOCK TABLES
Why does
I encountered this problem:
LOCK TABLE READ;
LOCK TABLE READ;
LOCK TABLE WRITE;
LOCK TABLE WRITE;
then I read from , this raises Table 'table_a' was not locked with Lock Tables.
After reading documentation, I fix the lock code to :
LOCK TABLE WRITE, WRITE
This solve the problem for me.
lock type
READ Read lock, no writes allowed
WRITE Exclusive write lock. No other connections can read or write to this table