Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev
MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST=''
 

Index | Next | Previous | View Flat


ben.mildren at gmail

Jun 3, 2011, 3:51 AM


Views: 1140
Permalink
MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST=''

Hi all

I've submitted a patch for the mysql resource agent. It currently will
error on MySQL 5.5+ as CHANGE MASTER TO MASTER_HOST='' has been deprecated.

Within the unset_master function, I've supplied a dummy value as the host
name to ensure replication would fail to start if restarted erroneously
before the mysql service is restarted, and issued a RESET SLAVE to remove
the replication metadata after a restart.

I've altered the is_slave function to add an extra check for the dummy host
name within the SHOW SLAVE STATUS output, as there is no longer a way to
stop SHOW SLAVE STATUS returning a resultset before the mysql instance is
restarted.

Cheers Ben

Subject User Time
MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST='' ben.mildren at gmail Jun 3, 2011, 3:51 AM
    Re: MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST='' florian.haas at linbit Jun 3, 2011, 4:12 AM
        Re: MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST='' marmarek at staszic Jun 3, 2011, 1:00 PM
            Re: MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST='' ben.mildren at gmail Jun 3, 2011, 11:22 PM
                Re: MySQL 5.5 no longer supports CHANGE MASTER TO MASTER_HOST='' dejanmm at fastmail Jun 14, 2011, 4:23 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.