Skip to content

Commit 0e88020

Browse files
to #119 docs: update README.md
1 parent 74a7670 commit 0e88020

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ psql -h 127.0.0.1 -p 15432 -U postgres
108108

109109
We have integrated a setup tool in the Docker image that helps replicate data from your primary (MySQL|Postgres) server to MyDuck Server. The tool is available via the `SETUP_MODE` environment variable. In `REPLICA` mode, the container will start MyDuck Server, dump a snapshot of your primary (MySQL|Postgres) server, and start replicating data in real-time.
110110

111-
#### MySQL Replica Setup
111+
#### MySQL or Postgres Replica Setup
112112

113113
```bash
114114
docker run \
115-
--network=host \
115+
-p 13306:3306 \
116+
-p 15432:5432 \
116117
--privileged \
117118
--workdir=/home/admin \
118119
--env=SETUP_MODE=REPLICA \
@@ -121,11 +122,8 @@ docker run \
121122
apecloud/myduckserver:latest
122123
```
123124

124-
#### PostgreSQL Replica Setup
125-
126-
```bash
127-
TODO
128-
```
125+
The only difference between postgres and mysql is the header in `SOURCE_DSN` parameter.
126+
For MySQL, use `mysql` as the header, and for Postgres, use `postgres`.
129127

130128
### Connecting to Cloud MySQL & Postgres
131129

0 commit comments

Comments
 (0)