A Docker image for the community release of MySQL Shell.
latest, 8, 8.4, 8.4-debian, 8.4-bookworm
8.4.4-debian, 8.4.4-bookworm)8.0, 8.0-debian, 8.0-bookworm
8.0.41-debian, 8.0.41-bookworm)Because Oracle only provides an APT repository for x86_64 binaries, this image is only available on the linux/amd64 architecture.
# Run the interactive MySQL Shell prompt
docker run -it mindgrub/mysqlsh:8.4
We bundled a script to execute the Copy Schema utility: /usr/bin/mysqlsh-copy-schema
docker run -i mindgrub/mysqlsh:8.4 /usr/bin/mysqlsh-copy-schema
You can use this command along with certain environment variables.
SOURCE_HOST: hostname of source database serverSOURCE_PORT: TCP port for source database server (default: 3306)SOURCE_USER: username for source databaseSOURCE_PASSWORD: password for source databaseDESTINATION_HOST: hostname of destination database serverDESTINATION_PORT: TCP port for destination database server (default: 3306)DESTINATION_USER: username for destination databaseDESTINATION_PASSWORD: password for destination databaseMYSQLSH_THREADS: number of threads to use for copying (default: 4)MYSQLSH_SSL_MODE: the MySQL SSL Mode (default: PREFERRED)RECREATE_SCHEMA: if specified, drop and re-create the existing schemaWhen the command executes, the compatibility argument of the copy schema utility is set to ["strip_definers"], and the consistency argument is set to False.
Content type
Image
Digest
sha256:ae67c5989…
Size
209.7 MB
Last updated
over 1 year ago
docker pull mindgrub/mysqlsh