~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/flush.rst

  • Committer: Brian Aker
  • Date: 2010-12-20 05:46:52 UTC
  • mfrom: (1994.4.3 drizzle)
  • Revision ID: brian@tangent.org-20101220054652-gptboup9zs5ec13b
Merge in doc updates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
FLUSH
2
2
=====
3
3
 
 
4
The FLUSH statement clears or reloads different internal caches. One variant acquires a lock.
 
5
 
4
6
FLUSH 
5
7
    flush_option [, flush_option] ...
6
8
 
7
9
flush_option:
8
10
    | TABLES table_name [, table_name] ...
 
11
    (closes all specified tables, forces those tables in use to be closed, and flushes the query cache for the named tables)
9
12
    | TABLES WITH READ LOCK
 
13
    (closes all open tables and locks all tables for all databases with a global read lock*)
10
14
    | LOGS
 
15
    (closes and reopens all log files--if binary logging is enabled, the sequence number of the binary log file is incremented by one relative to the previous file)
11
16
    | STATUS
 
17
    (adds the current thread's session status variable values to the global values and resets the session values to zero)
12
18
    
13
 
To release a FLUSH TABLES WITH READ LOCK, you must issue an UNLOCK TABLES.
 
19
*To release a FLUSH TABLES WITH READ LOCK, you must issue an UNLOCK TABLES.