File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,6 @@ pg_upgrade https://www.postgresql.org/docs/current/pgupgrade.html[文档]概述
177177----
178178# 使用 IvorySQL 的 initdb 初始化新集群
179179/opt/ivorysql/bin/initdb -D /data/ivorysql/data
180-
181- # 停止新集群
182- /opt/ivorysql/bin/pg_ctl -D /data/ivorysql/data stop
183180----
184181
185182==== 第二步:停止源 PostgreSQL 集群
@@ -223,7 +220,7 @@ pg_upgrade https://www.postgresql.org/docs/current/pgupgrade.html[文档]概述
223220/opt/ivorysql/bin/pg_ctl -D /data/ivorysql/data start
224221
225222# 验证数据库是否正常
226- /opt/ivorysql/bin/psql -p 5433 -c "SELECT version();"
223+ /opt/ivorysql/bin/psql -p 5432 -c "SELECT version();"
227224----
228225
229226==== 第六步:清理旧集群
Original file line number Diff line number Diff line change @@ -167,9 +167,6 @@ Upgrading from PostgreSQL to IvorySQL is considered a "cross-product" migration.
167167----
168168# Use IvorySQL's initdb to initialize the new cluster
169169/opt/ivorysql/bin/initdb -D /data/ivorysql/data
170-
171- # Stop the new cluster
172- /opt/ivorysql/bin/pg_ctl -D /data/ivorysql/data stop
173170----
174171
175172==== Step 2: Stop the source PostgreSQL cluster
@@ -213,7 +210,7 @@ Use `-c` to perform compatibility checks only without modifying any data:
213210/opt/ivorysql/bin/pg_ctl -D /data/ivorysql/data start
214211
215212# Verify if the database is functioning properly
216- /opt/ivorysql/bin/psql -p 5433 -c "SELECT version();"
213+ /opt/ivorysql/bin/psql -p 5432 -c "SELECT version();"
217214----
218215
219216==== Step 6: Clean up the old cluster
You can’t perform that action at this time.
0 commit comments