Grant Privilege
GRANT SELECT, INSERT ON college.* TO 'asha'@'localhost'; lets asha read and insert in that database. FLUSH PRIVILEGES is needed only for some older grant-table edits — GRANT statement usually applies at once.
Least privilege — the app user does not get DROP or GRANT OPTION. Host 'localhost' vs '%' matters.
Trap — GRANT ALL ON *.* TO an app. Trap: forgetting the quotes around 'user'@'host'.
On the example next to this theory: Grant Privilege: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
GRANT SELECT, INSERT ON college.* TO 'asha'@'localhost';