-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.

HBruijn
  • 77,029
  • 24
  • 135
  • 201

1 Answers1

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;
HBruijn
  • 77,029
  • 24
  • 135
  • 201