diff --git a/app/en/blogs/2022/Automatic-Test-Framework-YAT.md b/app/en/blogs/2022/Automatic-Test-Framework-YAT.md index 4549db2128cd17ab6b3f0eaf66256639fa4138f2..1465271a8085a612d363c447349c8d40132a7e38 100644 --- a/app/en/blogs/2022/Automatic-Test-Framework-YAT.md +++ b/app/en/blogs/2022/Automatic-Test-Framework-YAT.md @@ -35,7 +35,7 @@ Figure 1 Overall YAT framework Currently, languages such as SQL, Shell, Python \(unittes\), and Groovy \(Junit/Spock\) are supported. New languages and frameworks can be added through adapters. SQL statements supported by YAT are supersets of standard SQL statements.That is, YAT is extended based on standard SQL statements. Users can run shell commands, control connections, execute loops, bind SQL statements, control multiple sessions, and concurrently execute SQL statements in SQL scripts. For example: ``` - @conn user/passwd@127.0.0.1:9090; -- Reconnect to the database as the new user. + @conn user/passwd@***.***.***.***:9090; -- Reconnect to the database as the new user. drop table if exists tbl_x; -- Execute SQL statements. create table tbl_x (id int, age int, xb int); @@ -71,7 +71,7 @@ Figure 1 Overall YAT framework commit; } - @session(name: s2, user: abc, password: 'gauss@123') + @session(name: s2, user: abc, password: '*****@***') { @set autocommit false; update table tbl_x set par1 = 2 par2 = 2; diff --git a/app/en/blogs/2022/Setting-up-One-Primary-and-Two-Standby-openGauss-Databases-on-Kubernetes.md b/app/en/blogs/2022/Setting-up-One-Primary-and-Two-Standby-openGauss-Databases-on-Kubernetes.md index b1f5a6f5a2ad7641308a5e5b22197cf24d620f69..6d13763050ea575dbb212bac43cf96be7d27aa19 100644 --- a/app/en/blogs/2022/Setting-up-One-Primary-and-Two-Standby-openGauss-Databases-on-Kubernetes.md +++ b/app/en/blogs/2022/Setting-up-One-Primary-and-Two-Standby-openGauss-Databases-on-Kubernetes.md @@ -32,14 +32,14 @@ Initialize the environment as the **master** or **node** role. -
localhost=192.168.1.1 localport=5433 localservice=5434 remotehost=192.168.1.3 remoteport=5433 remoteservice=5434
+localhost=***.***.***.*** localport=5433 localservice=5434 remotehost=192.168.1.3 remoteport=5433 remoteservice=5434
localhost=192.168.1.1 localport=5433 localservice=5434 remotehost=192.168.1.2 remoteport=5433 remoteservice=5434
+localhost=***.***.***.*** localport=5433 localservice=5434 remotehost=192.168.1.2 remoteport=5433 remoteservice=5434
/home/pv1 192.168.137.0/24(rw,async,all_squash)
+/home/pv1 ***.***.***.***/24(rw,async,all_squash)
[root@n-k8s-m ~]#exportfs -rv
-exporting 192.168.137.0/24:/home/pv1
+exporting ***.***.***.***/24:/home/pv1
-/home/pv1 192.168.137.0/24(rw,async,all_squash)
+/home/pv1 ***.***.***.***/24(rw,async,all_squash)
>[root@n-k8s-m ~]#exportfs -rv
-exporting 192.168.137.0/24:/home/pv1
+exporting ***.***.***.***/24:/home/pv1
```
### 4.创建 openGauss 所使用的存储 pv
@@ -82,8 +82,7 @@ spec:
persistentVolumeReclaimPolicy: Recycle
nfs:
path: "/home/pv1"
- server: 192.168.137.61
- readOnly: false
+ server: ***.***.***.*** readOnly: false
#创建pv
[root@n-k8s-m opengauss]# kubectl create -f opengauss_pv.yml
diff --git "a/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md" "b/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md"
index 64c595fed9e7fd7673899b0cfaa7b9e457d5aaba..4c0b81ecc008b020541d943c67889954156b08dd 100644
--- "a/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md"
+++ "b/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md"
@@ -35,7 +35,7 @@ times: '12:30'
使用 SSH 远程登录到服务器之后,即可开始之后的步骤。
执行命令 SSH 账户名@域名或 IP 地址连接到远程服务器,连接上之后输入密码登录。
-如 `SSH root@db.example.cn`或 `SSH root@127.0.0.1`。
+如 `SSH root@db.example.cn`或 `SSH root@***.***.***.***`。
如果是本地虚拟机,请开机输入密码登录即可。
### 关闭防火墙
@@ -84,8 +84,8 @@ times: '12:30'
### 拉取 openGauss 镜像并启动
```
-执行 docker run --name opengauss --privileged=true -d -e GS_PASSWORD=Enmo@123 -p 8887:5432 enmotech/opengauss:latest 拉取镜像并创建容器。
-其中,opengauss 为容器名,8887:5432 为容器内部的 5432 端口映射到外部 8887 端口,默认密码为 Enmo@123。
+执行 docker run --name opengauss --privileged=true -d -e GS_PASSWORD=****@*** -p 8887:5432 enmotech/opengauss:latest 拉取镜像并创建容器。
+其中,opengauss 为容器名,8887:5432 为容器内部的 5432 端口映射到外部 8887 端口,默认密码为 ****@***。
之后执行 docker start opengauss 启动 openGauss 镜像。
通过 docker update --restart=always opengauss 来设置 openGauss 镜像随着 docker 的启动而启动
```
@@ -103,7 +103,7 @@ times: '12:30'
因为外部连接时,不允许使用初始账户 omm,所以新建一个账户。
```
-执行语句 CREATE USER testuser WITH PASSWORD ‘Enmo@123’;创建一个名为 testuser,密码为 Enmo@123 的账户。
+执行语句 CREATE USER testuser WITH PASSWORD ‘****@***’;创建一个名为 testuser,密码为 ****@*** 的账户。
执行语句 GRANT ALL PRIVILEGES ON DATABASE omm testuser;给予 testuser 默认数据库 omm 权限。
执行语句 GRANT ALL PRIVILEGES ON all tables in schema public TO testuser;给予全部表权限给 testuser。
```
@@ -123,7 +123,7 @@ times: '12:30'
-设置主机地址为你的服务器/虚拟机 IP 地址,端口设置为 8887。数据库为 omm,用户名和密码为刚才设置的用户名和密码。(testuser,Enmo@123)
+设置主机地址为你的服务器/虚拟机 IP 地址,端口设置为 8887。数据库为 omm,用户名和密码为刚才设置的用户名和密码。(testuser,****@***)
diff --git "a/app/zh/blogs/zhengwen2/openGauss\346\225\260\346\215\256\345\272\223\347\273\264\346\212\244\347\256\241\347\220\206.md" "b/app/zh/blogs/zhengwen2/openGauss\346\225\260\346\215\256\345\272\223\347\273\264\346\212\244\347\256\241\347\220\206.md"
index cbd81ea5221c1eb72fe79e59325f1c193ba09e69..712082ff6507b56726cd389a2e77005ff6c9d1d9 100644
--- "a/app/zh/blogs/zhengwen2/openGauss\346\225\260\346\215\256\345\272\223\347\273\264\346\212\244\347\256\241\347\220\206.md"
+++ "b/app/zh/blogs/zhengwen2/openGauss\346\225\260\346\215\256\345\272\223\347\273\264\346\212\244\347\256\241\347\220\206.md"
@@ -41,7 +41,7 @@ Processes: 113
Memory used: 7.0%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 2
[root@ecs-e1b3 ~]#
```
@@ -411,7 +411,7 @@ Processes: 109
Memory used: 6.7%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[root@ecs-e1b3 ~]# su - omm
Last login: Fri Jul 10 19:05:39 CST 2020 on pts/0
@@ -422,7 +422,7 @@ Processes: 111
Memory used: 7.0%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[omm@ecs-e1b3 ~]$
```
@@ -548,7 +548,7 @@ Processes: 109
Memory used: 6.7%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[root@ecs-e1b3 ~]# su - omm
Last login: Fri Jul 10 19:05:39 CST 2020 on pts/0
@@ -559,7 +559,7 @@ Processes: 111
Memory used: 7.0%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[omm@ecs-e1b3 ~]$
```
@@ -768,7 +768,7 @@ Processes: 109
Memory used: 6.7%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[root@ecs-e1b3 ~]# su - omm
Last login: Fri Jul 10 19:05:39 CST 2020 on pts/0
@@ -779,7 +779,7 @@ Processes: 111
Memory used: 7.0%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[omm@ecs-e1b3 ~]$
```
@@ -1180,7 +1180,7 @@ Processes: 154
Memory used: 2.3%
Swap used: 0.0%
Usage On: 14%
-IP address: 192.168.0.12
+IP address: ***.***.***.***
Users online: 3
[root@ecs-e1b3 ~]# su - omm
Last login: Mon Jul 27 09:23:44 CST 2020 on pts/0
@@ -1191,7 +1191,7 @@ Processes: 156
Memory used: 2.4%
Swap used: 0.0%
Usage On: 14%
-IP address: 192.168.0.12
+IP address: ***.***.***.***
Users online: 3
```
@@ -1343,7 +1343,7 @@ Processes: 109
Memory used: 6.7%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[root@ecs-e1b3 ~]# su - omm
Last login: Fri Jul 27 16:22:11 CST 2020 on pts/0
@@ -1354,7 +1354,7 @@ Processes: 111
Memory used: 7.0%
Swap used: 0.0%
Usage On: 15%
-IP address: 192.168.0.96
+IP address: ***.***.***.***
Users online: 1
[omm@ecs-e1b3 ~]$
```
diff --git a/app/zh/blogs/zhengxue/opengauss_compile.md b/app/zh/blogs/zhengxue/opengauss_compile.md
index dea8049a6b04f2e6ab15d568a74979221e3a81fc..0840bd826d44bbc409ccef8e6da298f5eeea94f3 100644
--- a/app/zh/blogs/zhengxue/opengauss_compile.md
+++ b/app/zh/blogs/zhengxue/opengauss_compile.md
@@ -482,7 +482,7 @@ release版本:
```
mkdir $data/dn1 (其中$data指数据目录)
-gs_initdb $data/dn1 --nodename single_node -w "opengauss@123"
+gs_initdb $data/dn1 --nodename single_node -w "open*****@***"
```
(5) 启动数据库
diff --git "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\345\210\207\346\215\242.md" "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\345\210\207\346\215\242.md"
index efb0bce6468ef5cfa995607d9ec6bbec7a7ebc70..6de73db864e2b8e8d172526f8b9893913155e3e9 100644
--- "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\345\210\207\346\215\242.md"
+++ "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\345\210\207\346\215\242.md"
@@ -228,7 +228,7 @@ HA state:
sync_state : Async
sync_priority : 0
sync_most_available : Off
- channel : 127.0.0.1:6600-->127.0.0.1:43350
+ channel : ***.***.***.***:6600-->***.***.***.***:43350
Receiver info:
No information
@@ -271,7 +271,7 @@ No information
receiver_flush_location : 2/A458
receiver_replay_location : 2/A458
sync_percent : 100%
- channel : 127.0.0.1:41952<--127.0.0.1:6600
+ channel : ***.***.***.***:41952<--***.***.***.***:6600
备集群备节点1
gs_ctl query -D /home/omm/ss_hatest1/dn1
@@ -296,8 +296,8 @@ port = 6600
xlog_file_path = '/home/zx/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/zx/ss_hatest/shared_lock_primary'
application_name = 'dn_master_0'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=6600 remotehost=127.0.0.1 remoteport=9600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=6600 remotehost=127.0.0.1 remoteport=9700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=6600 remotehost=***.***.***.*** remoteport=9600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=6600 remotehost=***.***.***.*** remoteport=9700'
cluster_run_mode = 'cluster_primary'
ha_module_debug = off
ss_log_level = 255
@@ -309,8 +309,8 @@ port = 6700
xlog_file_path = '/home/zx/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/zx/ss_hatest/shared_lock_primary'
application_name = 'dn_master_1'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=6700 remotehost=127.0.0.1 remoteport=9600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=6700 remotehost=127.0.0.1 remoteport=9700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=6700 remotehost=***.***.***.*** remoteport=9600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=6700 remotehost=***.***.***.*** remoteport=9700'
cluster_run_mode = 'cluster_primary'
ha_module_debug = off
ss_log_level = 255
@@ -324,8 +324,8 @@ port = 9600
xlog_file_path = '/home/zx/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/zx/ss_hatest/shared_lock_primary'
application_name = 'dn_standby_0'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=9600 remotehost=127.0.0.1 remoteport=6600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=9600 remotehost=127.0.0.1 remoteport=6700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=9600 remotehost=***.***.***.*** remoteport=6600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=9600 remotehost=***.***.***.*** remoteport=6700'
cluster_run_mode = 'cluster_standby'
ha_module_debug = off
ss_log_level = 255
@@ -337,8 +337,8 @@ port = 9700
xlog_file_path = '/home/zx/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/zx/ss_hatest/shared_lock_primary'
application_name = 'dn_standby_1'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=9700 remotehost=127.0.0.1 remoteport=6600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=9700 remotehost=127.0.0.1 remoteport=6700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=9700 remotehost=***.***.***.*** remoteport=6600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=9700 remotehost=***.***.***.*** remoteport=6700'
cluster_run_mode = 'cluster_standby'
ha_module_debug = off
ss_log_level = 255
@@ -460,7 +460,7 @@ No information
sync_state : Async
sync_priority : 0
sync_most_available : Off
- channel : 127.0.0.1:9700-->127.0.0.1:37904
+ channel : ***.***.***.***:9700-->***.***.***.***:37904
Receiver info:
No information
@@ -491,7 +491,7 @@ No information
receiver_flush_location : 2/43EA798
receiver_replay_location : 2/43EA798
sync_percent : 100%
- channel : 127.0.0.1:37904<--127.0.0.1:9700
+ channel : ***.***.***.***:37904<--***.***.***.***:9700
备集群从备节点1
[omm@nodename pg_log]$ gs_ctl query -D /home/zx/ss_hatest1/dn1
diff --git "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\270\200)\344\271\213dd\346\250\241\346\213\237.md" "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\270\200)\344\271\213dd\346\250\241\346\213\237.md"
index 58856cdf987381db46d504bc9c57f3b27163e72d..1f73b7d630a57328395f4a931c577456c716f5b4 100644
--- "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\270\200)\344\271\213dd\346\250\241\346\213\237.md"
+++ "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\270\200)\344\271\213dd\346\250\241\346\213\237.md"
@@ -315,7 +315,7 @@ fi
@Precondition!@:节点 0 对应的 dssserver 必须提前拉起,即 dsserver 进程存在
```
-gs_initdb -D /opt/omm/cluster/dn0 --nodename=node1 -U omm -w opengauss@123 --vgname=+data --enable-dss --dms_url="0:10.10.10.10:4411,1:10.10.10.10:4412" -I 0 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home0/.dss_unix_d_socket' -d -n -g /dev/sdj
+gs_initdb -D /opt/omm/cluster/dn0 --nodename=node1 -U omm -w open*****@*** --vgname=+data --enable-dss --dms_url="0:10.10.10.10:4411,1:10.10.10.10:4412" -I 0 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home0/.dss_unix_d_socket' -d -n -g /dev/sdj
```
(2)配置主集群主节点 0
@@ -356,7 +356,7 @@ host all all 10.10.10.20/32 sha256
(3)主集群备节点 1 初始化
```
-gs_initdb -D /opt/omm/cluster/dn1 --nodename=node2 -U omm -w opengauss@123 --vgname=+data --enable-dss --dms_url="0:10.10.10.10:4411,1:10.10.10.10:4412" -I 1 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home1/.dss_unix_d_socket'
+gs_initdb -D /opt/omm/cluster/dn1 --nodename=node2 -U omm -w open*****@*** --vgname=+data --enable-dss --dms_url="0:10.10.10.10:4411,1:10.10.10.10:4412" -I 1 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home1/.dss_unix_d_socket'
```
主集群备节点 1 配置参数
@@ -383,7 +383,7 @@ gs_ctl start -D /opt/omm/cluster/dn0
(1) 备集群首备节点 0 初始化
```
-gs_initdb -D /opt/omm/cluster/dn0 --nodename=node1 -U omm -w opengauss@123 --vgname=+data --enable-dss --dms_url="0:10.10.10.20:4411,1:10.10.10.20:4412" -I 0 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home0/.dss_unix_d_socket' -d -n -g /dev/sdi
+gs_initdb -D /opt/omm/cluster/dn0 --nodename=node1 -U omm -w open*****@*** --vgname=+data --enable-dss --dms_url="0:10.10.10.20:4411,1:10.10.10.20:4412" -I 0 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home0/.dss_unix_d_socket' -d -n -g /dev/sdi
```
(2) 配置备集群首备节点 0
@@ -438,7 +438,7 @@ gs_ctl build -D /opt/omm/cluster/dn0 -b cross_cluster_full -g 0 --vgname=+data -
@shirley_zhengx tell you in secret that is very important!@:备集群第一次初始化的时候,一定要初始化首备节点 0 并对首备做完 build 之后,再初始化备集群其它从备节点,即第(3)要在第(4)之前执行 @very very important!@:
```
-gs_initdb -D /opt/omm/cluster/dn1 --nodename=node2 -U omm -w opengauss@123 --vgname=+data --enable-dss --dma-url="0:10.10.10.20:4411,1:10.10.10.20:4412" -I 1 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home1/.dss_unix_d_socket'
+gs_initdb -D /opt/omm/cluster/dn1 --nodename=node2 -U omm -w open*****@*** --vgname=+data --enable-dss --dma-url="0:10.10.10.20:4411,1:10.10.10.20:4412" -I 1 --socketpath='UDS:/opt/omm/cluster/ss_data/dss_home1/.dss_unix_d_socket'
```
备集群从备节点 1 配置参数
diff --git "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\272\214)\344\271\213cm\346\250\241\346\213\237.md" "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\272\214)\344\271\213cm\346\250\241\346\213\237.md"
index f9bd1e71f243d536b719f95e2e92bbe81ad64123..2453bb4bda617ecdb145790f760134281803cdb0 100644
--- "a/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\272\214)\344\271\213cm\346\250\241\346\213\237.md"
+++ "b/app/zh/blogs/zhengxue/\350\265\204\346\272\220\346\261\240\345\214\226\346\224\257\346\214\201\345\220\214\345\237\216dorado\345\217\214\351\233\206\347\276\244\351\203\250\347\275\262(\344\272\214)\344\271\213cm\346\250\241\346\213\237.md"
@@ -254,8 +254,8 @@ DSS_PORT_BASE=30000
PGPORT=(6600 6700)
STANDBY_PGPORT=(9600 9700)
-nodedata_cfg="0:127.0.0.1:6611,1:127.0.0.1:6711"
-standby_nodedata_cfg="0:127.0.0.1:9611,1:127.0.0.1:9711"
+nodedata_cfg="0:***.***.***.***:6611,1:***.***.***.***:6711"
+standby_nodedata_cfg="0:***.***.***.***:9611,1:***.***.***.***:9711"
```
ha_test.sh脚本适配了双集群模拟, 执行的时候带上dual_cluster就是双集群,不带就是单集群。脚本会自动将数据库拉起,执行完该脚本后,就相当于部署了2套独立的资源池化
@@ -332,8 +332,8 @@ port = 6600
xlog_file_path = '/home/omm/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/omm/ss_hatest/shared_lock_primary'
application_name = 'dn_master_0'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=6600 remotehost=127.0.0.1 remoteport=9600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=6600 remotehost=127.0.0.1 remoteport=9700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=6600 remotehost=***.***.***.*** remoteport=9600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=6600 remotehost=***.***.***.*** remoteport=9700'
cluster_run_mode = 'cluster_primary'
ha_module_debug = off
ss_log_level = 255
@@ -362,8 +362,8 @@ port = 6700
xlog_file_path = '/home/omm/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/omm/ss_hatest/shared_lock_primary'
application_name = 'dn_master_1'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=6700 remotehost=127.0.0.1 remoteport=9600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=6700 remotehost=127.0.0.1 remoteport=9700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=6700 remotehost=***.***.***.*** remoteport=9600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=6700 remotehost=***.***.***.*** remoteport=9700'
cluster_run_mode = 'cluster_primary'
ha_module_debug = off
ss_log_level = 255
@@ -394,8 +394,8 @@ port = 9600
xlog_file_path = '/home/omm/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/omm/ss_hatest/shared_lock_standby'
application_name = 'dn_standby_0'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=9600 remotehost=127.0.0.1 remoteport=6600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=9600 remotehost=127.0.0.1 remoteport=6700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=9600 remotehost=***.***.***.*** remoteport=6600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=9600 remotehost=***.***.***.*** remoteport=6700'
cluster_run_mode = 'cluster_standby'
ha_module_debug = off
ss_log_level = 255
@@ -427,8 +427,8 @@ port = 9700
xlog_file_path = '/home/zx/ss_hatest/dorado_shared_disk'
xlog_lock_file_path = '/home/zx/ss_hatest/shared_lock_standby'
application_name = 'dn_standby_1'
-cross_cluster_replconninfo1='localhost=127.0.0.1 localport=9700 remotehost=127.0.0.1 remoteport=6600'
-cross_cluster_replconninfo2='localhost=127.0.0.1 localport=9700 remotehost=127.0.0.1 remoteport=6700'
+cross_cluster_replconninfo1='localhost=***.***.***.*** localport=9700 remotehost=***.***.***.*** remoteport=6600'
+cross_cluster_replconninfo2='localhost=***.***.***.*** localport=9700 remotehost=***.***.***.*** remoteport=6700'
cluster_run_mode = 'cluster_standby'
ha_module_debug = off
ss_log_level = 255
@@ -488,7 +488,7 @@ sh standby_full_build_reconnect.sh
sync_state : Async
sync_priority : 0
sync_most_available : Off
- channel : 127.0.0.1:6600-->127.0.0.1:43350
+ channel : ***.***.***.***:6600-->***.***.***.***:43350
Receiver info:
No information
@@ -540,7 +540,7 @@ No information
receiver_flush_location : 2/5C8
receiver_replay_location : 2/5C8
sync_percent : 100%
- channel : 127.0.0.1:41952<--127.0.0.1:6600
+ channel : ***.***.***.***:41952<--***.***.***.***:6600
```
(4) 备集群从备节点
diff --git "a/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md" "b/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md"
index 4242e7c635c8eefecc9f46704cda994c8951aecd..8ab34ea9c60613cb83533272bff9283aaf6baecc 100644
--- "a/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md"
+++ "b/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md"
@@ -123,7 +123,7 @@ https://blog.csdn.net/weixin_43837229/article/details/94733475?utm_medium=distri
3、运行 opengauss 镜像
- `sudo docker run --name opengauss --privileged=true -d -p 5432:5432 -e GS_PASSWORD=Enmo@123 enmotech/opengauss:latest`
+ `sudo docker run --name opengauss --privileged=true -d -p 5432:5432 -e GS_PASSWORD=****@*** enmotech/opengauss:latest`
4、进入容器
diff --git "a/app/zh/blogs/zhoujingbnu/2023-09-01-Mysql\345\215\217\350\256\256\345\205\274\345\256\271\347\211\271\346\200\247\345\205\245\351\227\250.md" "b/app/zh/blogs/zhoujingbnu/2023-09-01-Mysql\345\215\217\350\256\256\345\205\274\345\256\271\347\211\271\346\200\247\345\205\245\351\227\250.md"
index a2585d8af00d0cd8ca77fbc82d1c7ca3019f7db9..c9806854c4fab38429fac67d90d5309f42bdba22 100644
--- "a/app/zh/blogs/zhoujingbnu/2023-09-01-Mysql\345\215\217\350\256\256\345\205\274\345\256\271\347\211\271\346\200\247\345\205\245\351\227\250.md"
+++ "b/app/zh/blogs/zhoujingbnu/2023-09-01-Mysql\345\215\217\350\256\256\345\205\274\345\256\271\347\211\271\346\200\247\345\205\245\351\227\250.md"
@@ -45,7 +45,7 @@ mysql_test=# select set_native_password('adminusr','Cmcc@123!');
3.使用mysql-client连接openGauss的Mysql协议兼容端口。在其中可以访问到磐维数据库mysql_test库(B库),中mysql_test schema下的表。注意mysql中的database对应openGauss中的schema
```
-mysql -h127.0.0.1 -uadminusr -pCmcc@123! -P3307 -Dmysql_test
+mysql -h***.***.***.*** -uadminusr -pCmcc@123! -P3307 -Dmysql_test
```
4.使用jdbc方式连接,连接串类似如下形式:
@@ -82,7 +82,7 @@ String URL = "jdbc:mysql://ip-address:dolphin_server_port/mysql_database?&useSSL
```
[root@d202a05cb1c3 ~]# netstat -antp|grep 3307
-tcp 0 0 0.0.0.0:3307 0.0.0.0:* LISTEN 5784/gaussdb
+tcp 0 0 ***.***.***.***:3307 ***.***.***.***:* LISTEN 5784/gaussdb
tcp6 0 0 :::3307 :::* LISTEN 5784/gaussdb
```