article/postgresql_and_edb/mysql 迁移数据至postgresql.md
2022-11-01 23:53:13 +08:00

97 lines
1.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mysql 迁移数据至postgresql
业务需要 需要将mysql 数据迁移到 postgresql 12
百度了许久 迁移工具还是挺多的
docker pull quay.io/enterprisedb/postgresql:12
docker pull ghcr.dockerproxy.com/username/image:tag
docker pull quay.io/username/image:tag
docker pull quay.dockerproxy.com/username/image:tag
GitHub Container Registry
常规镜像代理
官方命令docker pull ghcr.io/username/image:tag
代理命令docker pull ghcr.dockerproxy.com/username/image:tag
docker run -d \
--name pgsql-12 \
-e POSTGRES_PASSWORD=yiling \
-p 5432:5432 \
-v /opt/postgresql/data:/var/lib/postgresql/data \
ghcr.dockerproxy.com/enterprisedb/postgresql:12
docker run -d --name pgsql-12 -e POSTGRES_PASSWORD=yiling -p 5432:5432 -v /opt/postgresql/data:/var/lib/postgresql/data ghcr.dockerproxy.com/enterprisedb/postgresql:12
$ docker run -d \
--name some-postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
ghcr.dockerproxy.com/enterprisedb/postgresql:12
bin/usr/pgsql-12
data /var/lib/postgresql/data/pgdata
docker run -d -v /opt/pgload/pgload.load:/opt/pgload/pgload.load --name pgloader dimitri/pgloader:latest pgloader /opt/pgload/pgload.load
mysql_native_password
caching_sha2_password