No cache version.


Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher dans le manuel MySQL

13.7.7.33 SHOW REPLICAS Statement

  1. {SHOW REPLICAS}

Displays a list of replicas currently registered with the source. From MySQL 8.0.22, use SHOW REPLICAS in place of SHOW SLAVE HOSTS, which is deprecated from that release. In releases before MySQL 8.0.22, use SHOW SLAVE HOSTS. SHOW REPLICAS requires the REPLICATION SLAVE privilege.

SHOW REPLICAS should be executed on a server that acts as a replication source. The statement displays information about servers that are or have been connected as replicas, with each row of the result corresponding to one replica server, as shown here:

  1. mysql> SHOW REPLICAS;
  2. +------------+-----------+------+-----------+--------------------------------------+
  3. | Server_id | Host | Port | Source_id | Replica_UUID |
  4. +------------+-----------+------+-----------+--------------------------------------+
  5. | 10 | iconnect2 | 3306 | 3 | 14cb6624-7f93-11e0-b2c0-c80aa9429562 |
  6. | 21 | athena | 3306 | 3 | 07af4990-f41f-11df-a566-7ac56fdaf645 |
  7. +------------+-----------+------+-----------+--------------------------------------+
  • Server_id: The unique server ID of the replica server, as configured in the replica server's option file, or on the command line with --server-id=value.

  • Host: The host name of the replica server, as specified on the replica with the --report-host option. This can differ from the machine name as configured in the operating system.

  • User: The replica server user name, as specified on the replica with the --report-user option. Statement output includes this column only if the source server is started with the --show-replica-auth-info or --show-slave-auth-info option.

  • Password: The replica server password, as specified on the replica with the --report-password option. Statement output includes this column only if the source server is started with the --show-replica-auth-info or --show-slave-auth-info option.

  • Port: The port on the source to which the replica server is listening, as specified on the replica with the --report-port option.

    A zero in this column means that the replica port (--report-port) was not set.

  • Source_id: The unique server ID of the source server that the replica server is replicating from. This is the server ID of the server on which SHOW REPLICAS is executed, so this same value is listed for each row in the result.

  • Replica_UUID: The globally unique ID of this replica, as generated on the replica and found in the replica's auto.cnf file.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-show-replicas.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut