Account Lock
ALTER USER 'asha'@'localhost' ACCOUNT LOCK; stops that MySQL user from logging in. Unlock with ACCOUNT UNLOCK. This is a user account, not a table row.
Use it when a intern leaves or a password leak happens — lock first, rotate password, unlock if needed.
Trap — confusing ACCOUNT LOCK with LOCK TABLES.
On the example next to this theory: Account Lock: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
ALTER USER 'asha'@'localhost' ACCOUNT LOCK;