<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    326 MySQL Technical Reference for Version 4.0.3 SHOW MASTER LOGS Only available starting in Version 3.23.28.  Lists the binary logs on the master.  You should use this  command  prior  to  PURGE MASTER LOGS TO to nd out how far you should go.  (Master) SHOW BINLOG EVENTS [ IN 'logname' ] [ FROM pos ] [ LIMIT [offset,] rows ] Shows the events in the binary update log.  Pri- marily used for testing/debugging, but can also be used by regular clients that for some reason need to read the binary log contents.  (Master) SHOW NEW MASTER FOR SLAVE WITH MASTER_LOG_FILE='logfile' AND MASTER_LOG_POS=pos AND MASTER_ LOG_SEQ=log_seq AND MASTER_SERVER_ ID=server_id This command is used when a slave of a possibly dead/unavailable  master  needs  to  be  switched to replicate o another slave that has been repli- cating the same master.  The command will re- turn  recalculated  replication  coordinates,  and the output can be used in a subsequent CHANGE MASTER TO   command. Normal  users  should never need to run this command.  It is primarily reserved  for  internal  use  by  the  fail-safe  repli- cation  code.   We  may  later  change  the  syntax if we nd a more intuitive way to describe this operation. PURGE MASTER LOGS TO 'logname' Available  starting  in  Version  3.23.28.   Deletes all the replication logs that are listed in the log index  as  being  prior  to  the  speci ed  log,  and removes  them  from  the  log  index,  so  that  the given log now becomes the rst.  Example: PURGE MASTER LOGS TO 'mysql-bin.010' This  command  will  do  nothing  and  fail  with an error if you have an active slave that is cur- rently reading one of the logs you are trying to delete.   However,  if you have a dormant slave, and happen to purge one of the logs it wants to read, the slave will be unable to replicate once it comes up.  The command is safe to run while slaves are replicating { you do not need to stop them. You must rst check all the slaves with  SHOW SLAVE STATUS to see which log they are on, then do a listing of the logs on the master with SHOW MASTER LOGS, nd the earliest log among all the slaves (if all the slaves are up to date, this will be the last log on the list), backup all the logs you are about to delete (optional) and purge up to the target log. 4.10.7  Replication FAQ
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide