• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
MySQL Replication
 

MySQL Replication

on

  • 712 views

 

Statistics

Views

Total Views
712
Views on SlideShare
712
Embed Views
0

Actions

Likes
1
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MySQL Replication MySQL Replication Presentation Transcript

    • Replication-Why-How?
      ---MySQL 4 Oracle DBAseries
      苏普
      2010-3
      1
    • No redo! No undo!
      >UPDATE life SET happy="always" WHERE nick="supu";
      SQL Plan
      Storage Engines
      >OK! OR Error
    • How to log
      MySQL Logs the SQL(binary)
      UPDATE life SET happy="always" WHERE nick="supu";
      Storage Enginescan log
    • Whatlog look like
      # at 323
      #100308 21:09:04 server id 1 end_log_pos 486 Query thread_id=591 exec_time=0 error_code=0
      SET TIMESTAMP=1268053744/*!*/;
      update sns_users_0001 set nick=rpad('',20,md5(rand())),gmt_modified=now() where user_id = 34
      Whenlog
      AftereverySQLdone
    • Logic Replication is possible
    • What is Replication
    • What is Replication
    • Feature
      Logical
      There is no guarantee about data
      Asynchronous
      Delay
      Still, It works Fine
    • How to config
      Principle
      Copy all data && Mark the pos of log
      Google: MySQL Replicaition
      NoDBA[Not only dba]
    • Wish you a peaceful life