| Databases InterBase (28) MS-SQL (5) mysql (33) Oracle (1) |
Lock an entire mysql database with all its tables
Question: How can I lock my entire mysql database? And how can I lock a single table?Answer: Go to the mysql shell and use the FLUSH command.This clloses all open tables and locks all tables for all databases with a read lock until you execute UNLOCK TABLES. This is very convenient way to get backups.
Comments:
|