Make a MySQL session read-only.

SET SESSION TRANSACTION READ ONLY;

Comments