~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/flush.rst

  • Committer: Mark Atwood
  • Date: 2011-10-27 05:08:12 UTC
  • mfrom: (2445.1.11 rf)
  • Revision ID: me@mark.atwood.name-20111027050812-1icvs72lb0u4xdc4
mergeĀ lp:~olafvdspek/drizzle/refactor8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
FLUSH
2
2
=====
3
3
 
4
 
FLUSH 
5
 
    flush_option [, flush_option] ...
6
 
 
7
 
flush_option:
8
 
    | TABLES table_name [, table_name] ...
9
 
    | TABLES WITH READ LOCK
10
 
    | LOGS
11
 
    | STATUS
 
4
The FLUSH statement clears or reloads different internal caches. One variant acquires a lock.
 
5
 
 
6
.. code-block:: mysql
 
7
 
 
8
   FLUSH flush_option [, flush_option] ...
 
9
 
 
10
flush_option
 
11
------------
 
12
 
 
13
* TABLES table_name [, table_name]
 
14
        
 
15
(closes all specified tables, forces those tables in use to be closed, and flushes the query cache for the named tables)
 
16
 
 
17
* TABLES WITH READ LOCK
 
18
        
 
19
(closes all open tables and locks all tables for all databases with a global read lock*)
 
20
 
 
21
* LOGS
 
22
        
 
23
(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)
 
24
 
 
25
* STATUS
 
26
        
 
27
(adds the current thread's session status variable values to the global values and resets the session values to zero)
12
28
    
13
29
To release a FLUSH TABLES WITH READ LOCK, you must issue an UNLOCK TABLES.