~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/replication.rst

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

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
 
    .. code-block:: mysql
28
 
 
29
 
       drizzle> set @@replicate_query = 1;
 
27
    ``drizzle> set @@replicate_query = 1;``
30
28
 
31
29
    The stored query should be used as a guide only, and never executed
32
30
    on a slave to perform replication as this will lead to incorrect results.
166
164
It's easiest to understand this mechanism by following through a real-world
167
165
scenario.
168
166
 
169
 
Suppose the following table:
170
 
 
171
 
.. code-block:: mysql
 
167
Suppose the following table::
172
168
 
173
169
  CREATE TABLE test.person
174
170
  (
180
176
 
181
177
Also suppose that test.t1 contains 1 million records.
182
178
 
183
 
Next, suppose a client issues the SQL statement:
184
 
 
185
 
.. code-block:: mysql
 
179
Next, suppose a client issues the SQL statement::
186
180
 
187
181
  UPDATE test.person SET is_active = 'N';
188
182