<< 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

    Chapter 4:  Database Administration 331   You should run your slaves with the log-bin option and without log-slave-updates. This way the slave will be ready to become a master as soon as you issue STOP SLAVE; RESET MASTER, and  CHANGE MASTER TO  on the other slaves.  It will also help you catch spurious updates that may happen because of miscon guration of the slave (ideally, you want to con gure access rights so that no client can update the slave, except for the slave thread) combined with the bugs in your client programs (they should never update the slave directly). We are currently working on integrating an automatic master election system into MySQL, but until it is ready, you will have to create your own monitoring tools. 4.10.8  Troubleshooting Replication If you have followed the instructions, and your replication setup is not working, rst elimi- nate the user error factor by checking the following:   Is  the  master  logging  to  the  binary  log?   Check  with SHOW MASTER STATUS.   If  it  is, Position  will  be  non-zero.   If  not,  verify  that  you  have  given  the  master  log-bin option and have set server-id.   Is the slave running?  Check with SHOW SLAVE STATUS.  The answer is found in Slave_ running column.  If not, verify slave options and check the error log for messages.   If  the  slave  is  running,  did  it  establish  connection  with  the  master?     Do  SHOW PROCESSLIST,   nd  the  thread  with   system user   value  in   User   column  and   none in the Host column, and check the State column.  If it says connecting to master, verify  the  privileges  for  the  replication  user  on  the  master,  master  host  name,  your DNS setup, whether the master is actually running, whether it is reachable from the slave, and if all that seems okay, read the error logs.   If the slave was running, but then stopped, look at SHOW SLAVE STATUS output and check the error logs.  It usually happens when some query that succeeded on the master fails on the slave. This should never happen if you have taken a proper snapshot of the master, and never modify the data on the slave outside of the slave thread.  If it does, it is a bug, read below on how to report it.   If  a  query  on  that  succeeded  on  the  master  refuses  to  run  on  the  slave,  and  a  full database resync ( the proper thing to do ) does not seem feasible, try the following: First see if there is some stray record in the way.  Understand how it got there, then delete it and run SLAVE START If the above does not work or does not apply, try to understand if it would be safe to make the update manually ( if needed) and then ignore the next query from the master. If you have decided you can skip the next query, do SET GLOBAL SQL_SLAVE_SKIP_ COUNTER=1; SLAVE START; to skip a query that does not use AUTO_INCREMENT or LAST_INSERT_ID(),  or  SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2; SLAVE START; otherwise.   The  reason  queries  that  use  AUTO_INCREMENT  or  LAST_INSERT_ID() are di erent is that they take two events in the binary log of the master.
     

    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