Skip to content

Alpine image with mysql-client installed. Helpful if you just want to execute a mysqldump from docker

Notifications You must be signed in to change notification settings

Byteflair/docker-mysql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

docker-mysql-client

Alpine image with mysql-client installed. Helpful if you just want to execute a mysqldump from docker

Use the following sample command, but first replace ${PORT}, ${HOST}, ${USER}, ${PASSWORD}, ${DATABASE} with your desired values. Or you can alternatively complete the command passing Docker these environment variables using the -e option, like: -e USER=aUsername.

  docker run --rm -v "$PWD/data":/data --name mysql-client byteflair/mysql-client sh -c "mysqldump -P${PORT} -h${HOST} -R -u${USER} -p${PASSWORD} ${DATABASE} > /data/dump.sql"

About

Alpine image with mysql-client installed. Helpful if you just want to execute a mysqldump from docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published