-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e88020
commit cb2632a
Showing
5 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,8 +108,6 @@ psql -h 127.0.0.1 -p 15432 -U postgres | |
|
||
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. | ||
|
||
#### MySQL or Postgres Replica Setup | ||
|
||
```bash | ||
docker run \ | ||
-p 13306:3306 \ | ||
|
@@ -122,8 +120,10 @@ docker run \ | |
apecloud/myduckserver:latest | ||
``` | ||
|
||
The only difference between postgres and mysql is the header in `SOURCE_DSN` parameter. | ||
For MySQL, use `mysql` as the header, and for Postgres, use `postgres`. | ||
`SOURCE_DSN` is the connection string of the primary (MySQL|Postgres) server. | ||
Use the mysql URI scheme to connect to a MySQL primary and use the postgres URI scheme to connect to a Postgres primary. | ||
For example, | ||
`--env=SOURCE_DSN=mysql://root:[email protected]:3306` or `--env=SOURCE_DSN=postgres://postgres:[email protected]:5432.` | ||
|
||
### Connecting to Cloud MySQL & Postgres | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters