本文描述了如何通过三个沙盒msyql实例，创建一个Single-Primary Innodb cluster，并通过mysql Router对connections实现路由，实现高可用性。
This section explains how to set up a single-primary InnoDB cluster and configure MySQL Router to achieve high availability.
This tutorial shows how to use MySQL Shell to create an InnoDB cluster consisting of a MySQL Server instance which provides the seed instance of the InnoDB cluster and holds the initial data set. Two more sandbox MySQL server instances are created and added to the InnoDB cluster. Then MySQL Router is deployed and used to route connections to the InnoDB cluster, and high availability is tested.
Start MySQL Shell
\js command, then execute:
Connect MySQL Shell to the seed instance, in this case the one at port 3310:
createCluster() method to create the InnoDB cluster with the currently connected instance as the seed:
cluster Instance Variable
Add the second instance to the InnoDB cluster:
Add the third instance:
PRIMARY instance 3310
bring the instance that you killed back online.