MySQL Forums
Forum List  »  Replication

Master reports itself as slave when executing "show slave hosts"
Posted by: Jerry Richart
Date: November 05, 2014 02:04PM

I have a situation where when executing "show slave hosts" on the master it reports itself as the slave.
The master and slave each have a unique server_id
The server_id variables for the master and slave indicate the correct value when submitting "show variables where variable_name like 'server_id'"
"show master status" reflects back the correct values on the master.
"show slave status" reflects accurate information on the slave.

mysql> show slave hosts;
+-----------+-----------------------------+------+-----------+--------------------------------------+
| Server_id | Host | Port | Master_id | Slave_UUID |
+-----------+-----------------------------+------+-----------+--------------------------------------+
| 2 | PTWMYS01 | 3306 | 1 | 804f84c1-d232-11e3-9d85-0050568700f9 |
+-----------+-----------------------------+------+-----------+--------------------------------------+
1 row in set (0.00 sec)

The host in this case should read PTWMYS02

Can someone help me correct this?

Jerry Richart
Database Administrator for Microsoft SQL Server and MySQL.

Stand Out! Be a beacon for others to follow.

Options: ReplyQuote


Subject
Views
Written By
Posted
Master reports itself as slave when executing "show slave hosts"
1532
November 05, 2014 02:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.