Your SlideShare is downloading. ×
MySQL Replication
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MySQL Replication

540
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
540
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Replication-Why-How?
    ---MySQL 4 Oracle DBAseries
    苏普
    2010-3
    1
  • 2. No redo! No undo!
    >UPDATE life SET happy="always" WHERE nick="supu";
    SQL Plan
    Storage Engines
    >OK! OR Error
  • 3. How to log
    MySQL Logs the SQL(binary)
    UPDATE life SET happy="always" WHERE nick="supu";
    Storage Enginescan log
  • 4. 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
  • 5. Logic Replication is possible
  • 6. What is Replication
  • 7. What is Replication
  • 8. Feature
    Logical
    There is no guarantee about data
    Asynchronous
    Delay
    Still, It works Fine
  • 9. How to config
    Principle
    Copy all data && Mark the pos of log
    Google: MySQL Replicaition
    NoDBA[Not only dba]
  • 10. Wish you a peaceful life

×