拉取Percona XtraDB Cluster镜像docker pull percona/percona-xtradb-cluster:5.7官方镜像下有使用说明One of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD or MYSQL_RANDOM_ROOT_PASSWORDmust be defined.三个设置密码的环境变量必须定义其中一...
摘要由CSDN通过智能技术生成
拉取Percona XtraDB Cluster镜像
docker pull percona/percona-xtradb-cluster:5.7
官方镜像下有使用说明
One of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD or MYSQL_RANDOM_ROOT_PASSWORDmust be defined.三个设置密码的环境变量必须定义其中一个。
The image will create the user xtrabackup@localhost for the XtraBackup SST method. If you want to use a password for the xtrabackup user, set XTRABACKUP_PASSWORD.自动定义用户xtrabackup,可选设置xtrabackup user的密码,集群启动后可以查看数据库mysql表user,确实有该用户。
If you want to use the discovery service (right now only etcd is supported), set the address to DISCOVERY_SERVICE. The image will automatically find a running cluser by CLUSTER_NAME and join to the existing cluster (or start a new one).可以使用etcd注册服务,自动生成集群I
f you want to start without the discovery service, use the CLUSTER_JOIN variable. Empty variables will start a new cluster, To join an existing cluster, set CLUSTER_JOIN to the list of IP addresses running cluster nodes.不使用etcd,可以手动添加环境变量CLUSTER_JOIN 添加集群。
最重要的提示For an example, see thestart_node.sh script.启动容器的脚本在github上
拉取Percona XtraDB Cluster镜像docker pull percona/percona-xtradb-cluster:5.7官方镜像下有使用说明One of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD or MYSQL_RANDOM_ROOT_PASSWORDmust be defined.三个设置密码的环境变量必须定义其中一...