~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/replication.rst

  • Committer: Andrew Hutchings
  • Date: 2011-02-15 22:03:42 UTC
  • mto: (2172.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2173.
  • Revision ID: andrew@linuxjedi.co.uk-20110215220342-k4tveraug3bpy2v5
Make fixes to temporal docs
Make a few minor docs cleanups/fixes
Start using syntax-highlighting code blocks

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    default global value is FALSE which will not include the query in the
25
25
    messages. It can be controlled per session, as well. For example:
26
26
 
27
 
    ``drizzle> set @@replicate_query = 1;``
 
27
    .. code-block:: mysql
 
28
 
 
29
       drizzle> set @@replicate_query = 1;
28
30
 
29
31
    The stored query should be used as a guide only, and never executed
30
32
    on a slave to perform replication as this will lead to incorrect results.
164
166
It's easiest to understand this mechanism by following through a real-world
165
167
scenario.
166
168
 
167
 
Suppose the following table::
 
169
Suppose the following table:
 
170
 
 
171
.. code-block:: mysql
168
172
 
169
173
  CREATE TABLE test.person
170
174
  (
176
180
 
177
181
Also suppose that test.t1 contains 1 million records.
178
182
 
179
 
Next, suppose a client issues the SQL statement::
 
183
Next, suppose a client issues the SQL statement:
 
184
 
 
185
.. code-block:: mysql
180
186
 
181
187
  UPDATE test.person SET is_active = 'N';
182
188