title: How do I set MySQL temporarily to read-only through the command line?
body: <p>I'm creating a bash script which, among other things, gathers some data from a MySQL database. My MySQL user has write privileges, but for safety reasons I would like to temporarily set it to a read only state. Is it possible to do this from a command line?</p>