首页 > 数据库 > MySQL > 正文

mysql innodb cluster 创建

2022-07-30 23:12:23
字体:
来源:转载
供稿:网友
        环境准备:
1 下载和安装需要的软件(本人的软件版本--都是mysql Community中的Linux Generic版本)
      mysql-server(mysql-8.0.17-linux-glibc2.12-x86_64.tar.xz)
      mysql-router(mysql-router-8.0.17-linux-glibc2.12-x86_64.tar.xz)
      mysql-shell(mysql-shell-8.0.17-linux-glibc2.12-x86-64bit.tar.gz)
 
      安装(以mysql server为例,其他类似,以下都是Mysql_tar操作系统用户操作):
cd /home/mysql_tar
tar -xvf mysql-8.0.17-linux-glibc2.12-x86_64.tar.xz
ln -s mysql-8.0.17-linux-glibc2.12-x86_64 mysql_install(方便升级)
...mysql-router...
....mysql_shell...
 
Some variables need to be changed, but cannot be done dynamically on the server.
NOTE: Please use the dba.configureInstance() command to repair these issues.
 
{
"config_errors": [
{
"action": "server_update",
"current": "CRC32",
"option": "binlog_checksum",
"required": "NONE"
},
{
"action": "server_update+restart",
"current": "OFF",
"option": "enforce_gtid_consistency",
"required": "ON"
},
{
"action": "server_update+restart",
"current": "OFF",
"option": "gtid_mode",
"required": "ON"
},
{
"action": "server_update+restart",
"current": "1",
"option": "server_id",
"required": "<unique ID>"
}
],
"status": "error"
}
MySQL mysql_host_a:33060+ ssl JS > /exit
Bye!
 
。。。完成了,基本的步骤就这些吧。
主要方法:
dba.configureInstance()
 
dba.createCluster()
 
Cluster.addInstance()----cluster=dba.getCluster()获取cluster变量
 
Cluster.removeInstance()
 
Cluster.rejoinInstance()

(编辑:错新网)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表