Sign inSign up

mindgrub/mysqlsh

By mindgrub

Updated over 1 year ago

MySQL Shell

Image
Databases & storage
0

8.4K

mindgrub/mysqlsh repository overview

A Docker image for the community release of MySQL Shell.

Versions and Tags Available

CPU Architecture

Because Oracle only provides an APT repository for x86_64 binaries, this image is only available on the linux/amd64 architecture.

Usage

# Run the interactive MySQL Shell prompt
docker run -it mindgrub/mysqlsh:8.4
Copy Schema Script

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 server
  • SOURCE_PORT: TCP port for source database server (default: 3306)
  • SOURCE_USER: username for source database
  • SOURCE_PASSWORD: password for source database
  • DESTINATION_HOST: hostname of destination database server
  • DESTINATION_PORT: TCP port for destination database server (default: 3306)
  • DESTINATION_USER: username for destination database
  • DESTINATION_PASSWORD: password for destination database
  • MYSQLSH_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 schema

When the command executes, the compatibility argument of the copy schema utility is set to ["strip_definers"], and the consistency argument is set to False.

Tag summary

Content type

Image

Digest

sha256:ae67c5989

Size

209.7 MB

Last updated

over 1 year ago

docker pull mindgrub/mysqlsh