-5

I need to block all writes (insert , update, delete) on all databases. How can I do that ? Put all database in Read Only for a period time.

0

1 Answer 1

15

A quick search results in the correct chapter of the manual with:

mysql> FLUSH TABLES WITH READ LOCK;
mysql> SET GLOBAL read_only = ON;
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.